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

Side by Side Diff: sitescripts/extensions/utils.py

Issue 29374637: Issue 4549 - Implement the Windows Store API to upload development builds (Closed)
Patch Set: Rebase Created Feb. 16, 2017, 1:14 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sitescripts/extensions/test/sitescripts.ini.template ('k') | tox.ini » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # This file is part of the Adblock Plus web scripts, 1 # This file is part of the Adblock Plus web scripts,
2 # Copyright (C) 2006-2016 Eyeo GmbH 2 # Copyright (C) 2006-2016 Eyeo GmbH
3 # 3 #
4 # Adblock Plus is free software: you can redistribute it and/or modify 4 # Adblock Plus is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License version 3 as 5 # it under the terms of the GNU General Public License version 3 as
6 # published by the Free Software Foundation. 6 # published by the Free Software Foundation.
7 # 7 #
8 # Adblock Plus is distributed in the hope that it will be useful, 8 # Adblock Plus is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
(...skipping 17 matching lines...) Expand all
28 from StringIO import StringIO 28 from StringIO import StringIO
29 from sitescripts.utils import get_config 29 from sitescripts.utils import get_config
30 from xml.parsers.expat import ExpatError 30 from xml.parsers.expat import ExpatError
31 31
32 PACKAGE_SUFFIXES = { 32 PACKAGE_SUFFIXES = {
33 'gecko': '.xpi', 33 'gecko': '.xpi',
34 'gecko-webext': '.xpi', 34 'gecko-webext': '.xpi',
35 'chrome': '.crx', 35 'chrome': '.crx',
36 'safari': '.safariextz', 36 'safari': '.safariextz',
37 'ie': '.exe', 37 'ie': '.exe',
38 'android': '.apk' 38 'android': '.apk',
39 'edge': '.appx'
39 } 40 }
40 41
41 42
42 def compareVersionParts(part1, part2): 43 def compareVersionParts(part1, part2):
43 def convertInt(value, default): 44 def convertInt(value, default):
44 try: 45 try:
45 return int(value) 46 return int(value)
46 except ValueError: 47 except ValueError:
47 return default 48 return default
48 49
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 dbpass = _defineProperty('signtool_dbpass') 150 dbpass = _defineProperty('signtool_dbpass')
150 151
151 keyFile = _defineProperty('key', local=True, default='') 152 keyFile = _defineProperty('key', local=True, default='')
152 name = _defineProperty('name', local=True) 153 name = _defineProperty('name', local=True)
153 galleryID = _defineProperty('galleryID', local=True, default='') 154 galleryID = _defineProperty('galleryID', local=True, default='')
154 devbuildGalleryID = _defineProperty('devbuildGalleryID', local=True, default ='') 155 devbuildGalleryID = _defineProperty('devbuildGalleryID', local=True, default ='')
155 downloadPage = _defineProperty('downloadPage', local=True, default='') 156 downloadPage = _defineProperty('downloadPage', local=True, default='')
156 clientID = _defineProperty('clientID', local=True, default='') 157 clientID = _defineProperty('clientID', local=True, default='')
157 clientSecret = _defineProperty('clientSecret', local=True, default='') 158 clientSecret = _defineProperty('clientSecret', local=True, default='')
158 refreshToken = _defineProperty('refreshToken', local=True, default='') 159 refreshToken = _defineProperty('refreshToken', local=True, default='')
160 tenantID = _defineProperty('tenantID', local=True, default='')
159 revision = _defineProperty('revision', local=True, default='master') 161 revision = _defineProperty('revision', local=True, default='master')
160 162
161 latestRevision = _defineNightlyProperty('latestRevision') 163 latestRevision = _defineNightlyProperty('latestRevision')
162 164
163 def __init__(self, config, nightlyConfig, repositoryName, repository): 165 def __init__(self, config, nightlyConfig, repositoryName, repository):
164 """ 166 """
165 Creates a new Configuration instance that is bound to a particular 167 Creates a new Configuration instance that is bound to a particular
166 repository. 168 repository.
167 """ 169 """
168 170
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 if not extensions: 396 if not extensions:
395 return 397 return
396 398
397 updates = {} 399 updates = {}
398 for extension in extensions: 400 for extension in extensions:
399 updates[extension['basename']] = { 401 updates[extension['basename']] = {
400 'url': extension['updateURL'], 402 'url': extension['updateURL'],
401 'version': extension['version'] 403 'version': extension['version']
402 } 404 }
403 writeLibabpUpdateManifest(path, updates) 405 writeLibabpUpdateManifest(path, updates)
OLDNEW
« no previous file with comments | « sitescripts/extensions/test/sitescripts.ini.template ('k') | tox.ini » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld