| 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-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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 | 193 |
| 194 def readSafariMetadata(self): | 194 def readSafariMetadata(self): |
| 195 import buildtools.packagerSafari as packager | 195 import buildtools.packagerSafari as packager |
| 196 metadata = packager.readMetadata(self.tempdir, self.config.type) | 196 metadata = packager.readMetadata(self.tempdir, self.config.type) |
| 197 certs = packager.get_certificates_and_key(self.config.keyFile)[0] | 197 certs = packager.get_certificates_and_key(self.config.keyFile)[0] |
| 198 | 198 |
| 199 self.certificateID = packager.get_developer_identifier(certs) | 199 self.certificateID = packager.get_developer_identifier(certs) |
| 200 self.version = packager.getBuildVersion(self.tempdir, metadata, False, self.
revision) | 200 self.version = packager.getBuildVersion(self.tempdir, metadata, False, self.
revision) |
| 201 self.shortVersion = metadata.get("general", "version") | 201 self.shortVersion = metadata.get("general", "version") |
| 202 self.basename = metadata.get("general", "basename") | 202 self.basename = metadata.get("general", "basename") |
| 203 self.updatedFromGallery = False |
| 203 | 204 |
| 204 def writeUpdateManifest(self): | 205 def writeUpdateManifest(self): |
| 205 """ | 206 """ |
| 206 Writes update.rdf file for the current build | 207 Writes update.rdf file for the current build |
| 207 """ | 208 """ |
| 208 baseDir = os.path.join(self.config.nightliesDirectory, self.basename) | 209 baseDir = os.path.join(self.config.nightliesDirectory, self.basename) |
| 209 if not os.path.exists(baseDir): | 210 if not os.path.exists(baseDir): |
| 210 os.makedirs(baseDir) | 211 os.makedirs(baseDir) |
| 211 if self.config.type == 'chrome' or self.config.type == 'opera': | 212 if self.config.type == 'chrome' or self.config.type == 'opera': |
| 212 manifestPath = os.path.join(baseDir, "updates.xml") | 213 manifestPath = os.path.join(baseDir, "updates.xml") |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 except Exception, ex: | 513 except Exception, ex: |
| 513 print >>sys.stderr, "The build for %s failed:" % repo | 514 print >>sys.stderr, "The build for %s failed:" % repo |
| 514 traceback.print_exc() | 515 traceback.print_exc() |
| 515 | 516 |
| 516 file = open(nightlyConfigFile, 'wb') | 517 file = open(nightlyConfigFile, 'wb') |
| 517 nightlyConfig.write(file) | 518 nightlyConfig.write(file) |
| 518 | 519 |
| 519 | 520 |
| 520 if __name__ == '__main__': | 521 if __name__ == '__main__': |
| 521 main() | 522 main() |
| OLD | NEW |