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-present eyeo GmbH | 2 # Copyright (C) 2006-present 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 13 matching lines...) Expand all Loading... |
24 import urlparse | 24 import urlparse |
25 import urllib | 25 import urllib |
26 import xml.dom.minidom as dom | 26 import xml.dom.minidom as dom |
27 from ConfigParser import SafeConfigParser, NoOptionError | 27 from ConfigParser import SafeConfigParser, NoOptionError |
28 from StringIO import StringIO | 28 from StringIO import StringIO |
29 from sitescripts.utils import get_config | 29 from sitescripts.utils import get_config |
30 from xml.parsers.expat import ExpatError | 30 from xml.parsers.expat import ExpatError |
31 | 31 |
32 PACKAGE_SUFFIXES = { | 32 PACKAGE_SUFFIXES = { |
33 'gecko': '.xpi', | 33 'gecko': '.xpi', |
34 'gecko-webext': '.xpi', | |
35 'chrome': '.crx', | 34 'chrome': '.crx', |
36 'safari': '.safariextz', | 35 'safari': '.safariextz', |
37 'ie': '.exe', | 36 'ie': '.exe', |
38 'android': '.apk', | 37 'android': '.apk', |
39 'edge': '.appx' | 38 'edge': '.appx' |
40 } | 39 } |
41 | 40 |
42 | 41 |
43 def compareVersionParts(part1, part2): | 42 def compareVersionParts(part1, part2): |
44 def convertInt(value, default): | 43 def convertInt(value, default): |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 if not extensions: | 395 if not extensions: |
397 return | 396 return |
398 | 397 |
399 updates = {} | 398 updates = {} |
400 for extension in extensions: | 399 for extension in extensions: |
401 updates[extension['basename']] = { | 400 updates[extension['basename']] = { |
402 'url': extension['updateURL'], | 401 'url': extension['updateURL'], |
403 'version': extension['version'] | 402 'version': extension['version'] |
404 } | 403 } |
405 writeLibabpUpdateManifest(path, updates) | 404 writeLibabpUpdateManifest(path, updates) |
OLD | NEW |