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

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

Issue 29366797: Issue 4697 - Add support for WebExtension-based Firefox development builds (Closed) Base URL: https://hg.adblockplus.org/sitescripts
Patch Set: Updated tests and update manifest generation Created Dec. 5, 2016, 11:21 a.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
« no previous file with comments | « sitescripts/extensions/bin/createNightlies.py ('k') | sitescripts/extensions/template/update.rdf » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sitescripts/extensions/bin/updateUpdateManifests.py
===================================================================
--- a/sitescripts/extensions/bin/updateUpdateManifests.py
+++ b/sitescripts/extensions/bin/updateUpdateManifests.py
@@ -117,17 +117,18 @@ def writeUpdateManifest(links):
else:
# 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 repoType == 'android':
newManifestPath = get_config().get('extensions',
'androidNewUpdateManifestPath')
writeAndroidUpdateManifest(newManifestPath, extensions[repoType])
- template = get_template(get_config().get('extensions', '%sUpdateManifest' % repoType))
+ path = get_config().get('extensions', '%sUpdateManifest' % repoType)
+ template = get_template(path, autoescape=not path.endswith('.json'))
template.stream({'extensions': extensions[repoType]}).dump(manifestPath)
def updateUpdateManifests():
"""
updates all update manifests with the current versions
"""
« no previous file with comments | « sitescripts/extensions/bin/createNightlies.py ('k') | sitescripts/extensions/template/update.rdf » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld