| 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 11 matching lines...) Expand all Loading... |
| 22 import time | 22 import time |
| 23 import urlparse | 23 import urlparse |
| 24 import urllib | 24 import urllib |
| 25 import xml.dom.minidom as dom | 25 import xml.dom.minidom as dom |
| 26 from ConfigParser import SafeConfigParser, NoOptionError | 26 from ConfigParser import SafeConfigParser, NoOptionError |
| 27 from StringIO import StringIO | 27 from StringIO import StringIO |
| 28 from sitescripts.utils import get_config | 28 from sitescripts.utils import get_config |
| 29 | 29 |
| 30 PACKAGE_SUFFIXES = { | 30 PACKAGE_SUFFIXES = { |
| 31 'gecko': '.xpi', | 31 'gecko': '.xpi', |
| 32 'gecko-webext': '.xpi', |
| 32 'chrome': '.crx', | 33 'chrome': '.crx', |
| 33 'safari': '.safariextz', | 34 'safari': '.safariextz', |
| 34 'ie': '.exe', | 35 'ie': '.exe', |
| 35 'android': '.apk' | 36 'android': '.apk' |
| 36 } | 37 } |
| 37 | 38 |
| 38 | 39 |
| 39 def compareVersionParts(part1, part2): | 40 def compareVersionParts(part1, part2): |
| 40 def convertInt(value, default): | 41 def convertInt(value, default): |
| 41 try: | 42 try: |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 if not extensions: | 378 if not extensions: |
| 378 return | 379 return |
| 379 | 380 |
| 380 updates = {} | 381 updates = {} |
| 381 for extension in extensions: | 382 for extension in extensions: |
| 382 updates[extension['basename']] = { | 383 updates[extension['basename']] = { |
| 383 'url': extension['updateURL'], | 384 'url': extension['updateURL'], |
| 384 'version': extension['version'] | 385 'version': extension['version'] |
| 385 } | 386 } |
| 386 writeLibabpUpdateManifest(path, updates) | 387 writeLibabpUpdateManifest(path, updates) |
| OLD | NEW |