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

Delta Between Two Patch Sets: sitescripts/extensions/bin/updateUpdateManifests.py

Issue 29322531: Issue 2797 - Add "Update From Gallery" key to the Safari extension update manifest (Closed)
Left Patch Set: Created July 16, 2015, 3:32 p.m.
Right Patch Set: Add "Update From Gallery" for stable, not development builds Created July 17, 2015, 11:33 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « sitescripts/extensions/bin/createNightlies.py ('k') | sitescripts/extensions/template/updates.plist » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
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
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
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()
LEFTRIGHT

Powered by Google App Engine
This is Rietveld