Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: sitescripts/extensions/bin/createNightlies.py

Issue 29337977: Issue 3758 - Removed Opera Extensions related logic (Closed)
Patch Set: Created March 8, 2016, 5:15 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sitescripts/extensions/bin/createNightlies.py
===================================================================
--- a/sitescripts/extensions/bin/createNightlies.py
+++ b/sitescripts/extensions/bin/createNightlies.py
@@ -223,31 +223,29 @@
"""
Writes update.rdf file for the current build
"""
- baseDir = os.path.join(self.config.nightliesDirectory, self.basename)
- if not os.path.exists(baseDir):
- os.makedirs(baseDir)
- if self.config.type == 'chrome' or self.config.type == 'opera':
Sebastian Noack 2016/03/08 17:23:05 Update manifest aren't used for Chrome anymore, bu
- manifestPath = os.path.join(baseDir, "updates.xml")
- templateName = 'chromeUpdateManifest'
- elif self.config.type == 'safari':
+ if self.config.type == 'safari':
manifestPath = os.path.join(baseDir, "updates.plist")
templateName = 'safariUpdateManifest'
elif self.config.type == 'android':
manifestPath = os.path.join(baseDir, "updates.xml")
templateName = 'androidUpdateManifest'
+ else:
+ return
- # ABP for Android used to have its own update manifest format. We need to
- # generate both that and the new one in the libadblockplus format as long
- # as a significant amount of users is on an old version.
+ baseDir = os.path.join(self.config.nightliesDirectory, self.basename)
+ if not os.path.exists(baseDir):
+ os.makedirs(baseDir)
+
+ # ABP for Android used to have its own update manifest format. We need to
+ # generate both that and the new one in the libadblockplus format as long
+ # as a significant amount of users is on an old version.
+ if self.config.type == 'android':
newManifestPath = os.path.join(baseDir, "update.json")
writeAndroidUpdateManifest(newManifestPath, [{
'basename': self.basename,
'version': self.version,
'updateURL': self.updateURL
}])
- else:
- manifestPath = os.path.join(baseDir, "update.rdf")
Sebastian Noack 2016/03/08 17:23:05 Update manifests are also not used anymore for Fir
- templateName = 'geckoUpdateManifest'
template = get_template(get_config().get('extensions', templateName))
template.stream({'extensions': [self]}).dump(manifestPath)
@@ -309,7 +307,7 @@
if os.path.exists(self.path):
os.remove(self.path)
raise
- elif self.config.type == 'chrome' or self.config.type == 'opera':
+ elif self.config.type == 'chrome':
import buildtools.packagerChrome as packager
packager.createBuild(self.tempdir, type=self.config.type, outFile=self.path, buildNum=self.revision, keyFile=self.config.keyFile, experimentalAPI=self.config.experimental)
elif self.config.type == 'safari':
@@ -563,7 +561,7 @@
# get meta data from the repository
if self.config.type == 'android':
self.readAndroidMetadata()
- elif self.config.type == 'chrome' or self.config.type == 'opera':
+ elif self.config.type == 'chrome':
self.readChromeMetadata()
elif self.config.type == 'safari':
self.readSafariMetadata()

Powered by Google App Engine
This is Rietveld