| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 } | 55 } |
| 56 elif repo.type == 'safari': | 56 elif repo.type == 'safari': |
| 57 metadata = repo.readMetadata(version) | 57 metadata = repo.readMetadata(version) |
| 58 certs = get_certificates_and_key(repo.keyFile)[0] | 58 certs = get_certificates_and_key(repo.keyFile)[0] |
| 59 | 59 |
| 60 return { | 60 return { |
| 61 'certificateID': get_developer_identifier(certs), | 61 'certificateID': get_developer_identifier(certs), |
| 62 'version': version, | 62 'version': version, |
| 63 'shortVersion': version, | 63 'shortVersion': version, |
| 64 'basename': metadata.get('general', 'basename'), | 64 'basename': metadata.get('general', 'basename'), |
| 65 'updatedFromGallery': True |
| 65 } | 66 } |
| 66 elif repo.type == 'gecko': | 67 elif repo.type == 'gecko': |
| 67 metadata = repo.readMetadata(version) | 68 metadata = repo.readMetadata(version) |
| 68 result = { | 69 result = { |
| 69 'extensionID': metadata.get('general', 'id'), | 70 'extensionID': metadata.get('general', 'id'), |
| 70 'version': version, | 71 'version': version, |
| 71 'compat': [] | 72 'compat': [] |
| 72 } | 73 } |
| 73 for key, value in KNOWN_APPS.iteritems(): | 74 for key, value in KNOWN_APPS.iteritems(): |
| 74 if metadata.has_option('compat', key): | 75 if metadata.has_option('compat', key): |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 """ | 121 """ |
| 121 updates all update manifests with the current versions | 122 updates all update manifests with the current versions |
| 122 """ | 123 """ |
| 123 | 124 |
| 124 parser = SafeConfigParser() | 125 parser = SafeConfigParser() |
| 125 getDownloadLinks(parser) | 126 getDownloadLinks(parser) |
| 126 writeUpdateManifest(parser) | 127 writeUpdateManifest(parser) |
| 127 | 128 |
| 128 if __name__ == "__main__": | 129 if __name__ == "__main__": |
| 129 updateUpdateManifests() | 130 updateUpdateManifests() |
| OLD | NEW |