| OLD | NEW |
| 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-2014 Eyeo GmbH | 4 # Copyright (C) 2006-2014 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 Writes update.json file for the latest IE build | 225 Writes update.json file for the latest IE build |
| 226 """ | 226 """ |
| 227 if len(versions) == 0: | 227 if len(versions) == 0: |
| 228 return | 228 return |
| 229 | 229 |
| 230 version = versions[0] | 230 version = versions[0] |
| 231 packageName = self.basename + '-' + versions[0] + self.config.packageSuffix | 231 packageName = self.basename + '-' + versions[0] + self.config.packageSuffix |
| 232 updateURL = urlparse.urljoin(self.config.nightliesURL, self.basename + '/' +
packageName + '?update') | 232 updateURL = urlparse.urljoin(self.config.nightliesURL, self.basename + '/' +
packageName + '?update') |
| 233 self.writeLibabpUpdateManifest({ | 233 self.writeLibabpUpdateManifest({ |
| 234 "%s/%s" % (self.basename, "msie64"): { | 234 "%s/%s" % (self.basename, "msie64"): { |
| 235 "url": updateURL, | 235 "url": updateURL.replace(".exe", "-x64.msi"), |
| 236 "version": version, | |
| 237 }, | |
| 238 "%s/%s" % (self.basename, "win64"): { | |
| 239 "url": updateURL, | |
| 240 "version": version, | 236 "version": version, |
| 241 }, | 237 }, |
| 242 "%s/%s" % (self.basename, "msie32"): { | 238 "%s/%s" % (self.basename, "msie32"): { |
| 243 "url": updateURL.replace("-x64", "-x86"), | 239 "url": updateURL.replace(".exe", "-x86.msi"), |
| 244 "version": version, | |
| 245 }, | |
| 246 "%s/%s" % (self.basename, "win32"): { | |
| 247 "url": updateURL.replace("-x64", "-x86"), | |
| 248 "version": version, | 240 "version": version, |
| 249 }, | 241 }, |
| 250 }) | 242 }) |
| 251 | 243 |
| 252 baseDir = os.path.join(self.config.nightliesDirectory, self.basename) | 244 baseDir = os.path.join(self.config.nightliesDirectory, self.basename) |
| 253 for suffix in (self.config.packageSuffix, self.config.packageSuffix.replace(
"-x64", "-x86")): | 245 for suffix in (self.config.packageSuffix, self.config.packageSuffix.replace(
"-x64", "-x86")): |
| 254 linkPath = os.path.join(baseDir, '00latest%s' % suffix) | 246 linkPath = os.path.join(baseDir, '00latest%s' % suffix) |
| 255 outputPath = os.path.join(baseDir, self.basename + '-' + versions[0] + suf
fix) | 247 outputPath = os.path.join(baseDir, self.basename + '-' + versions[0] + suf
fix) |
| 256 if hasattr(os, 'symlink'): | 248 if hasattr(os, 'symlink'): |
| 257 if os.path.exists(linkPath): | 249 if os.path.exists(linkPath): |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 except Exception, ex: | 508 except Exception, ex: |
| 517 print >>sys.stderr, "The build for %s failed:" % repo | 509 print >>sys.stderr, "The build for %s failed:" % repo |
| 518 traceback.print_exc() | 510 traceback.print_exc() |
| 519 | 511 |
| 520 file = open(nightlyConfigFile, 'wb') | 512 file = open(nightlyConfigFile, 'wb') |
| 521 nightlyConfig.write(file) | 513 nightlyConfig.write(file) |
| 522 | 514 |
| 523 | 515 |
| 524 if __name__ == '__main__': | 516 if __name__ == '__main__': |
| 525 main() | 517 main() |
| OLD | NEW |