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

Side by Side Diff: sitescripts/extensions/bin/createNightlies.py

Issue 4798492509732864: Issue 1767 - Fix link generation for IE artifacts, add links for GPO installers (Closed)
Patch Set: Created Feb. 12, 2015, 2:24 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # coding: utf-8 1 # coding: utf-8
2 2
3 # This file is part of the Adblock Plus web scripts, 3 # This file is part of the Adblock Plus web scripts,
4 # Copyright (C) 2006-2015 Eyeo GmbH 4 # Copyright (C) 2006-2015 Eyeo GmbH
5 # 5 #
6 # Adblock Plus is free software: you can redistribute it and/or modify 6 # Adblock Plus is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License version 3 as 7 # it under the terms of the GNU General Public License version 3 as
8 # published by the Free Software Foundation. 8 # published by the Free Software Foundation.
9 # 9 #
10 # Adblock Plus is distributed in the hope that it will be useful, 10 # Adblock Plus is distributed in the hope that it will be useful,
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 baseDir = os.path.join(self.config.nightliesDirectory, self.basename) 245 baseDir = os.path.join(self.config.nightliesDirectory, self.basename)
246 manifestPath = os.path.join(baseDir, 'update.json') 246 manifestPath = os.path.join(baseDir, 'update.json')
247 247
248 from sitescripts.extensions.utils import writeIEUpdateManifest as doWrite 248 from sitescripts.extensions.utils import writeIEUpdateManifest as doWrite
249 doWrite(manifestPath, [{ 249 doWrite(manifestPath, [{
250 'basename': self.basename, 250 'basename': self.basename,
251 'version': version, 251 'version': version,
252 'updateURL': updateURL 252 'updateURL': updateURL
253 }]) 253 }])
254 254
255 for suffix in (self.config.packageSuffix, self.config.packageSuffix.replace( "-x64", "-x86")): 255 for suffix in ["-x86.msi", "-x64.msi", "-gpo-x86.msi", "-gpo-x64.msi"]:
256 linkPath = os.path.join(baseDir, '00latest%s' % suffix) 256 linkPath = os.path.join(baseDir, '00latest%s' % suffix)
257 outputPath = os.path.join(baseDir, self.basename + '-' + version + suffix) 257 outputPath = os.path.join(baseDir, self.basename + '-' + version + suffix)
258 if hasattr(os, 'symlink'): 258 if hasattr(os, 'symlink'):
259 if os.path.exists(linkPath): 259 if os.path.exists(linkPath):
260 os.remove(linkPath) 260 os.remove(linkPath)
261 os.symlink(os.path.basename(outputPath), linkPath) 261 os.symlink(os.path.basename(outputPath), linkPath)
262 else: 262 else:
263 shutil.copyfile(outputPath, linkPath) 263 shutil.copyfile(outputPath, linkPath)
264 264
265 def build(self): 265 def build(self):
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 except Exception, ex: 517 except Exception, ex:
518 print >>sys.stderr, "The build for %s failed:" % repo 518 print >>sys.stderr, "The build for %s failed:" % repo
519 traceback.print_exc() 519 traceback.print_exc()
520 520
521 file = open(nightlyConfigFile, 'wb') 521 file = open(nightlyConfigFile, 'wb')
522 nightlyConfig.write(file) 522 nightlyConfig.write(file)
523 523
524 524
525 if __name__ == '__main__': 525 if __name__ == '__main__':
526 main() 526 main()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld