Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(593)

Side by Side Diff: sky/tools/download_sky_server

Issue 886543004: Set execute permissions on sky_server after download. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2014 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import os
7 import stat
6 import subprocess 8 import subprocess
7 9
8 from webkitpy.common.system import filesystem 10 from webkitpy.common.system import filesystem
9 from webkitpy.common.webkit_finder import WebKitFinder 11 from webkitpy.common.webkit_finder import WebKitFinder
10 12
11 finder = WebKitFinder(filesystem.FileSystem()) 13 finder = WebKitFinder(filesystem.FileSystem())
12 14
15 output_file_ = finder.path_from_chromium_base('out', 'downloads', 'sky_server')
13 subprocess.call([ 16 subprocess.call([
14 'download_from_google_storage', 17 'download_from_google_storage',
15 '--no_resume', 18 '--no_resume',
16 '--no_auth', 19 '--no_auth',
17 '--bucket', 'mojo', 20 '--bucket', 'mojo',
18 '--sha1_file', finder.path_from_chromium_base('sky', 'tools', 'skygo', 'sky_ server.sha1'), 21 '--sha1_file', finder.path_from_chromium_base('sky', 'tools', 'skygo', 'sky_ server.sha1'),
19 '--output', finder.path_from_chromium_base('out', 'downloads', 'sky_server') 22 '--output', output_file_
20 ]) 23 ])
24 os.chmod(output_file_, os.stat(output_file_).st_mode | stat.S_IEXEC)
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 408576698