Index: sitescripts/extensions/bin/updateUpdateManifests.py |
=================================================================== |
--- a/sitescripts/extensions/bin/updateUpdateManifests.py |
+++ b/sitescripts/extensions/bin/updateUpdateManifests.py |
@@ -45,7 +45,9 @@ |
return { |
'revision': revision, |
+ 'version': version, |
'minSdkVersion': get_min_sdk_version(repo, version), |
+ 'basename': os.path.basename(repo.repository) |
} |
elif repo.type == 'safari': |
metadata = repo.readMetadata(version) |
@@ -104,7 +106,13 @@ |
if repoType == 'android': |
newManifestPath = get_config().get("extensions", |
"androidNewUpdateManifestPath") |
- writeLibabpUpdateManifest(newManifestPath, extensions[repoType]) |
+ updates = {} |
+ for extension in extensions[repoType]: |
+ updates[extension['basename']] = { |
+ 'version': extension['version'], |
+ 'url': extension['updateURL'] |
+ } |
+ writeLibabpUpdateManifest(newManifestPath, updates) |
template = get_template(get_config().get('extensions', '%sUpdateManifest' % repoType)) |
template.stream({'extensions': extensions[repoType]}).dump(manifestPath) |