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

Side by Side Diff: packagerGecko.py

Issue 5842912759775232: Issue 2509 - Add Adblock Browser to known apps (Closed)
Patch Set: Created May 12, 2015, 8:28 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
« no previous file with comments | « no previous file | 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 Source Code Form is subject to the terms of the Mozilla Public 3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this 4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 6
7 import os 7 import os
8 import sys 8 import sys
9 import re 9 import re
10 import hashlib 10 import hashlib
(...skipping 14 matching lines...) Expand all
25 'emusic': 'dlm@emusic.com', 25 'emusic': 'dlm@emusic.com',
26 'fennec': '{a23983c0-fd0e-11dc-95ff-0800200c9a66}', 26 'fennec': '{a23983c0-fd0e-11dc-95ff-0800200c9a66}',
27 'fennec2': '{aa3c5121-dab2-40e2-81ca-7ea25febc110}', 27 'fennec2': '{aa3c5121-dab2-40e2-81ca-7ea25febc110}',
28 'firefox': '{ec8030f7-c20a-464f-9b0e-13a3a9e97384}', 28 'firefox': '{ec8030f7-c20a-464f-9b0e-13a3a9e97384}',
29 'midbrowser': '{aa5ca914-c309-495d-91cf-3141bbb04115}', 29 'midbrowser': '{aa5ca914-c309-495d-91cf-3141bbb04115}',
30 'prism': 'prism@developer.mozilla.org', 30 'prism': 'prism@developer.mozilla.org',
31 'seamonkey': '{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}', 31 'seamonkey': '{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}',
32 'songbird': 'songbird@songbirdnest.com', 32 'songbird': 'songbird@songbirdnest.com',
33 'thunderbird': '{3550f703-e582-4d05-9a08-453d09bdfdc6}', 33 'thunderbird': '{3550f703-e582-4d05-9a08-453d09bdfdc6}',
34 'toolkit': 'toolkit@mozilla.org', 34 'toolkit': 'toolkit@mozilla.org',
35 'adblockbrowser': '{55aba3ac-94d3-41a8-9e25-5c21fe874539}',
35 } 36 }
36 37
37 defaultLocale = 'en-US' 38 defaultLocale = 'en-US'
38 39
39 def getChromeDir(baseDir): 40 def getChromeDir(baseDir):
40 return os.path.join(baseDir, 'chrome') 41 return os.path.join(baseDir, 'chrome')
41 42
42 def getLocalesDir(baseDir): 43 def getLocalesDir(baseDir):
43 return os.path.join(getChromeDir(baseDir), 'locale') 44 return os.path.join(getChromeDir(baseDir), 'locale')
44 45
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 if metadata.has_section('preprocess'): 355 if metadata.has_section('preprocess'):
355 files.preprocess([f for f, _ in metadata.items('preprocess')]) 356 files.preprocess([f for f, _ in metadata.items('preprocess')])
356 if keyFile: 357 if keyFile:
357 signFiles(files, keyFile) 358 signFiles(files, keyFile)
358 files.zip(outFile, sortKey=lambda x: '!' if x == 'META-INF/zigbert.rsa' else x ) 359 files.zip(outFile, sortKey=lambda x: '!' if x == 'META-INF/zigbert.rsa' else x )
359 360
360 def autoInstall(baseDir, type, host, port, multicompartment=False): 361 def autoInstall(baseDir, type, host, port, multicompartment=False):
361 fileBuffer = StringIO() 362 fileBuffer = StringIO()
362 createBuild(baseDir, type=type, outFile=fileBuffer, multicompartment=multicomp artment) 363 createBuild(baseDir, type=type, outFile=fileBuffer, multicompartment=multicomp artment)
363 urllib.urlopen('http://%s:%s/' % (host, port), data=fileBuffer.getvalue()) 364 urllib.urlopen('http://%s:%s/' % (host, port), data=fileBuffer.getvalue())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld