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

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

Issue 6723860867055616: Issue 1048 - Generate Android update manifests in the libadblockplus format (Closed)
Patch Set: Created Sept. 12, 2014, 12:08 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
« no previous file with comments | « .sitescripts.example ('k') | no next file » | 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
@@ -30,7 +30,7 @@
from sitescripts.utils import get_config, get_template
from sitescripts.extensions.utils import (
Configuration, getDownloadLinks, getSafariCertificateID,
- writeIEUpdateManifest)
+ writeIEUpdateManifest, writeLibabpUpdateManifest)
from sitescripts.extensions.android import get_min_sdk_version
def readMetadata(repo, version):
@@ -98,6 +98,13 @@
if repoType == 'ie':
writeIEUpdateManifest(manifestPath, extensions[repoType])
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")
+ writeLibabpUpdateManifest(newManifestPath, extensions[repoType])
template = get_template(get_config().get('extensions', '%sUpdateManifest' % repoType))
template.stream({'extensions': extensions[repoType]}).dump(manifestPath)
« no previous file with comments | « .sitescripts.example ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld