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

Unified Diff: sitescripts/extensions/utils.py

Issue 5764619314397184: Issue 1048 - Generate devbuild update manifests for Android (Closed)
Patch Set: Created Sept. 19, 2014, 3:52 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/updateUpdateManifests.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sitescripts/extensions/utils.py
===================================================================
--- a/sitescripts/extensions/utils.py
+++ b/sitescripts/extensions/utils.py
@@ -435,3 +435,19 @@
"version": version
}
writeLibabpUpdateManifest(path, updates)
+
+def writeAndroidUpdateManifest(path, extensions):
+ """
+ Writes update.json for Android
+ """
+
+ if not extensions:
+ return
+
+ updates = {}
+ for extension in extensions:
+ updates[extension['basename']] = {
+ "url": extension['updateURL'],
+ "version": extension['version']
+ }
+ writeLibabpUpdateManifest(path, updates)
« no previous file with comments | « sitescripts/extensions/bin/updateUpdateManifests.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld