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

Delta Between Two Patch Sets: packagerGecko.py

Issue 11544056: Prepared buildtools for Safari (Closed)
Left Patch Set: Created Sept. 4, 2013, 8:03 a.m.
Right Patch Set: Created Oct. 31, 2013, 3:40 p.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 | « packagerChrome.py ('k') | packagerSafari.py » ('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 build tools, 3 # This file is part of the Adblock Plus build tools,
4 # Copyright (C) 2006-2013 Eyeo GmbH 4 # Copyright (C) 2006-2013 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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 files['install.rdf'] = createManifest(params) 322 files['install.rdf'] = createManifest(params)
323 if metadata.has_section('mapping'): 323 if metadata.has_section('mapping'):
324 files.readMappedFiles(metadata.items('mapping')) 324 files.readMappedFiles(metadata.items('mapping'))
325 files.read(baseDir, skip=('chrome')) 325 files.read(baseDir, skip=('chrome'))
326 for name, path in getChromeSubdirs(baseDir, params['locales']).iteritems(): 326 for name, path in getChromeSubdirs(baseDir, params['locales']).iteritems():
327 if os.path.isdir(path): 327 if os.path.isdir(path):
328 files.read(path, 'chrome/%s' % name) 328 files.read(path, 'chrome/%s' % name)
329 fixupLocales(params, files) 329 fixupLocales(params, files)
330 if not 'bootstrap.js' in files: 330 if not 'bootstrap.js' in files:
331 addMissingFiles(params, files) 331 addMissingFiles(params, files)
332 if metadata.has_section('preprocess'):
333 files.preprocess([f for f, _ in metadata.items('preprocess')])
332 if keyFile: 334 if keyFile:
333 signFiles(files, keyFile) 335 signFiles(files, keyFile)
334 files.zip(outFile, sortKey=lambda x: '!' if x == 'META-INF/zigbert.rsa' else x ) 336 files.zip(outFile, sortKey=lambda x: '!' if x == 'META-INF/zigbert.rsa' else x )
335 337
336 def autoInstall(baseDir, type, host, port, multicompartment=False): 338 def autoInstall(baseDir, type, host, port, multicompartment=False):
337 fileBuffer = StringIO() 339 fileBuffer = StringIO()
338 createBuild(baseDir, type=type, outFile=fileBuffer, multicompartment=multicomp artment) 340 createBuild(baseDir, type=type, outFile=fileBuffer, multicompartment=multicomp artment)
339 urllib.urlopen('http://%s:%s/' % (host, port), data=fileBuffer.getvalue()) 341 urllib.urlopen('http://%s:%s/' % (host, port), data=fileBuffer.getvalue())
LEFTRIGHT

Powered by Google App Engine
This is Rietveld