OLD | NEW |
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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 self.version = packager.getBuildVersion(self.tempdir, metadata, False, | 204 self.version = packager.getBuildVersion(self.tempdir, metadata, False, |
205 self.buildNum) | 205 self.buildNum) |
206 self.basename = metadata.get('general', 'basename') | 206 self.basename = metadata.get('general', 'basename') |
207 | 207 |
208 self.compat = [] | 208 self.compat = [] |
209 if metadata.has_section('compat') and metadata.has_option('compat', 'chr
ome'): | 209 if metadata.has_section('compat') and metadata.has_option('compat', 'chr
ome'): |
210 self.compat.append({'id': 'chrome', 'minVersion': metadata.get('comp
at', 'chrome')}) | 210 self.compat.append({'id': 'chrome', 'minVersion': metadata.get('comp
at', 'chrome')}) |
211 | 211 |
212 def readSafariMetadata(self): | 212 def readSafariMetadata(self): |
213 import buildtools.packagerSafari as packager | 213 import buildtools.packagerSafari as packager |
| 214 from buildtools import xarfile |
214 metadata = packager.readMetadata(self.tempdir, self.config.type) | 215 metadata = packager.readMetadata(self.tempdir, self.config.type) |
215 certs = packager.get_certificates_and_key(self.config.keyFile)[0] | 216 certs = xarfile.read_certificates_and_key(self.config.keyFile)[0] |
216 | 217 |
217 self.certificateID = packager.get_developer_identifier(certs) | 218 self.certificateID = packager.get_developer_identifier(certs) |
218 self.version = packager.getBuildVersion(self.tempdir, metadata, False, | 219 self.version = packager.getBuildVersion(self.tempdir, metadata, False, |
219 self.buildNum) | 220 self.buildNum) |
220 self.shortVersion = metadata.get('general', 'version') | 221 self.shortVersion = metadata.get('general', 'version') |
221 self.basename = metadata.get('general', 'basename') | 222 self.basename = metadata.get('general', 'basename') |
222 self.updatedFromGallery = False | 223 self.updatedFromGallery = False |
223 | 224 |
224 def writeUpdateManifest(self): | 225 def writeUpdateManifest(self): |
225 """ | 226 """ |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 except Exception, ex: | 631 except Exception, ex: |
631 logging.error('The build for %s failed:', repo) | 632 logging.error('The build for %s failed:', repo) |
632 logging.exception(ex) | 633 logging.exception(ex) |
633 | 634 |
634 file = open(nightlyConfigFile, 'wb') | 635 file = open(nightlyConfigFile, 'wb') |
635 nightlyConfig.write(file) | 636 nightlyConfig.write(file) |
636 | 637 |
637 | 638 |
638 if __name__ == '__main__': | 639 if __name__ == '__main__': |
639 main() | 640 main() |
OLD | NEW |