Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: sitescripts/extensions/utils.py

Issue 5764619314397184: Issue 1048 - Generate devbuild update manifests for Android (Closed)
Patch Set: Created Sept. 19, 2014, 3:52 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sitescripts/extensions/bin/updateUpdateManifests.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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)
OLDNEW
« no previous file with comments | « sitescripts/extensions/bin/updateUpdateManifests.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld