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

Delta Between Two Patch Sets: packagerSafari.py

Issue 29349885: Issue 4340 - Drop dependency on external xar tool (Closed)
Left Patch Set: Merged cert and private key extraction Created Aug. 17, 2016, 2:10 p.m.
Right Patch Set: Addressed more nits Created Aug. 17, 2016, 7:21 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | xarfile.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
1 # This Source Code Form is subject to the terms of the Mozilla Public 1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this 2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
4 4
5 import base64 5 import base64
6 import ConfigParser 6 import ConfigParser
7 import json 7 import json
8 import os 8 import os
9 import re 9 import re
10 from urlparse import urlparse 10 from urlparse import urlparse
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 184
185 dirname = metadata.get('general', 'basename') + '.safariextension' 185 dirname = metadata.get('general', 'basename') + '.safariextension'
186 for filename in files.keys(): 186 for filename in files.keys():
187 files[os.path.join(dirname, filename)] = files.pop(filename) 187 files[os.path.join(dirname, filename)] = files.pop(filename)
188 188
189 if not devenv and keyFile: 189 if not devenv and keyFile:
190 from buildtools import xarfile 190 from buildtools import xarfile
191 xarfile.create(outFile, files, keyFile) 191 xarfile.create(outFile, files, keyFile)
192 else: 192 else:
193 files.zip(outFile) 193 files.zip(outFile)
LEFTRIGHT
« no previous file | xarfile.py » ('j') | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

Powered by Google App Engine
This is Rietveld