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

Side by Side Diff: utils.py

Issue 29350158: Issue 4353 - Update Js Shell to version 45 (Closed)
Patch Set: Created Aug. 24, 2016, 11:16 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« scripts/abprewrite.js ('K') | « scripts/astDecompile.js ('k') | 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 is subject to the terms of the Mozilla Public License 3 # This Source Code is subject to the terms of the Mozilla Public License
4 # version 2.0 (the "License"). You can obtain a copy of the License at 4 # version 2.0 (the "License"). You can obtain a copy of the License at
5 # http://mozilla.org/MPL/2.0/. 5 # http://mozilla.org/MPL/2.0/.
6 6
7 from contextlib import closing 7 from contextlib import closing
8 import os 8 import os
9 import platform 9 import platform
10 from StringIO import StringIO 10 from StringIO import StringIO
11 import sys 11 import sys
12 import urllib 12 import urllib
13 import zipfile 13 import zipfile
14 14
15 JSSHELL_DIR = "mozilla-esr31" 15 JSSHELL_DIR = "mozilla-esr45"
16 JSSHELL_URL = ("https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly" 16 JSSHELL_URL = ("https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly"
17 "/2015/02/2015-02-25-00-22-19-%s/jsshell-%%s.zip" % JSSHELL_DIR) 17 "/2016/05/2016-05-29-00-15-03-%s/jsshell-%%s.zip" % JSSHELL_DIR)
Sebastian Noack 2016/08/24 11:27:55 Nit: While changing this line mind using str.forma
kzar 2016/09/13 13:35:20 Seems this was already done for me, fixed since I
18 18
19 JSSHELL_SUPPORTED_PLATFORMS = { 19 JSSHELL_SUPPORTED_PLATFORMS = {
20 "win32": "win32", 20 "win32": "win32",
21 "linux2": { 21 "linux2": {
22 "i686": "linux-i686", 22 "i686": "linux-i686",
23 "x86_64": "linux-x86_64" 23 "x86_64": "linux-x86_64"
24 }, 24 },
25 "darwin": "mac" 25 "darwin": "mac"
26 } 26 }
27 27
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 if not os.path.exists(path): 62 if not os.path.exists(path):
63 raise Exception('Downloaded package didn\'t contain JS shell executable' ) 63 raise Exception('Downloaded package didn\'t contain JS shell executable' )
64 64
65 try: 65 try:
66 os.chmod(path, 0700) 66 os.chmod(path, 0700)
67 except: 67 except:
68 pass 68 pass
69 69
70 return path 70 return path
OLDNEW
« scripts/abprewrite.js ('K') | « scripts/astDecompile.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld