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

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

Issue 6270530592178176: Issue 1144 - Generate IE update manifests (Closed)
Patch Set: Import writeIEUpdateManifest as doWrite in the function body Created July 30, 2014, 2:22 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/extensions/bin/createNightlies.py ('k') | sitescripts/extensions/utils.py » ('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
@@ -22,13 +22,15 @@
This script generates update manifests for all extensions and apps
"""
+import os
import re
import subprocess
from buildtools.packagerGecko import KNOWN_APPS
from ConfigParser import SafeConfigParser
from sitescripts.utils import get_config, get_template
-from sitescripts.extensions.utils import (Configuration, getDownloadLinks,
- getSafariCertificateID)
+from sitescripts.extensions.utils import (
+ Configuration, getDownloadLinks, getSafariCertificateID,
+ writeIEUpdateManifest)
from sitescripts.extensions.android import get_min_sdk_version
def readMetadata(repo, version):
@@ -65,6 +67,11 @@
minVersion, maxVersion = metadata.get('compat', key).split('/')
result['compat'].append({'id': value, 'minVersion': minVersion, 'maxVersion': maxVersion})
return result
+ elif repo.type == 'ie':
+ return {
+ 'version': version,
+ 'basename': os.path.basename(repo.repository)
+ }
else:
raise Exception('unknown repository type %r' % repo.type)
@@ -73,7 +80,7 @@
writes an update manifest for all extensions and Android apps
"""
- extensions = {'gecko': [], 'android': [], 'safari': []}
+ extensions = {'gecko': [], 'android': [], 'safari': [], 'ie': []}
for repo in Configuration.getRepositoryConfigurations():
if repo.type not in extensions or not links.has_section(repo.repositoryName):
continue
@@ -88,8 +95,11 @@
for repoType in extensions.iterkeys():
manifestPath = get_config().get('extensions', '%sUpdateManifestPath' % repoType)
- template = get_template(get_config().get('extensions', '%sUpdateManifest' % repoType))
- template.stream({'extensions': extensions[repoType]}).dump(manifestPath)
+ if repoType == 'ie':
+ writeIEUpdateManifest(manifestPath, extensions[repoType])
+ else:
+ template = get_template(get_config().get('extensions', '%sUpdateManifest' % repoType))
+ template.stream({'extensions': extensions[repoType]}).dump(manifestPath)
def updateUpdateManifests():
"""
« no previous file with comments | « sitescripts/extensions/bin/createNightlies.py ('k') | sitescripts/extensions/utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld