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

Side by Side Diff: sitescripts/extensions/bin/updateUpdateManifests.py

Issue 29589691: Issue 5757 - Update buildtools dependency, (re)move legacy extensions (Closed)
Patch Set: Created Oct. 26, 2017, 10:50 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
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
11 # GNU General Public License for more details. 11 # GNU General Public License for more details.
12 # 12 #
13 # You should have received a copy of the GNU General Public License 13 # You should have received a copy of the GNU General Public License
14 # along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. 14 # along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
15 15
16 """ 16 """
17 Generate update manifests 17 Generate update manifests
18 ========================= 18 =========================
19 19
20 This script generates update manifests for all extensions and apps 20 This script generates update manifests for all extensions and apps
21 """ 21 """
22 22
23 import os 23 import os
24 import re 24 import re
25 import sys 25 import sys
26 import subprocess 26 import subprocess
27 import xml.dom.minidom as dom 27 import xml.dom.minidom as dom
28 from ConfigParser import SafeConfigParser 28 from ConfigParser import SafeConfigParser
29 29
30 from buildtools.packagerSafari import get_developer_identifier 30 from sitescripts.extensions.bin.legacy.packagerSafari import get_developer_ident ifier
31 from buildtools.xarfile import read_certificates_and_key 31 from sitescripts.extensions.bin.legacy.xarfile import read_certificates_and_key
32 32
33 from sitescripts.utils import get_config, get_template 33 from sitescripts.utils import get_config, get_template
34 from sitescripts.extensions.utils import ( 34 from sitescripts.extensions.utils import (
35 Configuration, getDownloadLinks, 35 Configuration, getDownloadLinks,
36 writeIEUpdateManifest, writeAndroidUpdateManifest) 36 writeIEUpdateManifest, writeAndroidUpdateManifest)
37 37
38 38
39 def get_min_sdk_version(repo, version): 39 def get_min_sdk_version(repo, version):
40 command = ['hg', 'cat', '-r', version, 'AndroidManifest.xml'] 40 command = ['hg', 'cat', '-r', version, 'AndroidManifest.xml']
41 result = subprocess.check_output(command, cwd=repo.repository) 41 result = subprocess.check_output(command, cwd=repo.repository)
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 updates all update manifests with the current versions 119 updates all update manifests with the current versions
120 """ 120 """
121 121
122 parser = SafeConfigParser() 122 parser = SafeConfigParser()
123 getDownloadLinks(parser) 123 getDownloadLinks(parser)
124 writeUpdateManifest(parser) 124 writeUpdateManifest(parser)
125 125
126 126
127 if __name__ == '__main__': 127 if __name__ == '__main__':
128 updateUpdateManifests() 128 updateUpdateManifests()
OLDNEW

Powered by Google App Engine
This is Rietveld