| 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-2014 Eyeo GmbH | 4 # Copyright (C) 2006-2014 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 417 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 428     version = extension['version'] | 428     version = extension['version'] | 
| 429     updates["%s/%s" % (basename, "msie64")] = { | 429     updates["%s/%s" % (basename, "msie64")] = { | 
| 430       "url": updateURL.replace(".exe", "-x64.msi"), | 430       "url": updateURL.replace(".exe", "-x64.msi"), | 
| 431       "version": version | 431       "version": version | 
| 432     } | 432     } | 
| 433     updates["%s/%s" % (basename, "msie32")] = { | 433     updates["%s/%s" % (basename, "msie32")] = { | 
| 434       "url": updateURL.replace(".exe", "-x86.msi"), | 434       "url": updateURL.replace(".exe", "-x86.msi"), | 
| 435       "version": version | 435       "version": version | 
| 436     } | 436     } | 
| 437   writeLibabpUpdateManifest(path, updates) | 437   writeLibabpUpdateManifest(path, updates) | 
|  | 438 | 
|  | 439 def writeAndroidUpdateManifest(path, extensions): | 
|  | 440   """ | 
|  | 441     Writes update.json for Android | 
|  | 442   """ | 
|  | 443 | 
|  | 444   if not extensions: | 
|  | 445     return | 
|  | 446 | 
|  | 447   updates = {} | 
|  | 448   for extension in extensions: | 
|  | 449     updates[extension['basename']] = { | 
|  | 450       "url": extension['updateURL'], | 
|  | 451       "version": extension['version'] | 
|  | 452     } | 
|  | 453   writeLibabpUpdateManifest(path, updates) | 
| OLD | NEW | 
|---|