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

Unified Diff: download_from_google_storage.py

Issue 135153002: Force download_from_google_storage --config to produce a read-only token (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: download_from_google_storage.py
diff --git a/download_from_google_storage.py b/download_from_google_storage.py
index a51b16a259d4b53794342e7d4ce7074d31a02a45..bfb1b3c1ccc80013cf96c3cf9daaf8a0b9f962bf 100755
--- a/download_from_google_storage.py
+++ b/download_from_google_storage.py
@@ -325,7 +325,8 @@ def main(args):
parser.add_option('-g', '--config', action='store_true',
help='Alias for "gsutil config". Run this if you want '
'to initialize your saved Google Storage '
- 'credentials.')
+ 'credentials. This will create a read-only '
+ 'credentials file in ~/.boto.depot_tools.')
parser.add_option('-n', '--no_auth', action='store_true',
help='Skip auth checking. Use if it\'s known that the '
'target bucket is a public bucket.')
@@ -361,7 +362,8 @@ def main(args):
# Passing in -g/--config will run our copy of GSUtil, then quit.
if options.config:
- return gsutil.call('config')
+ return gsutil.call('config', '-r', '-o',
+ os.path.expanduser('~/.boto.depot_tools'))
M-A Ruel 2014/01/10 23:32:00 Note that we've seen '~' expansion issues on Windo
Ryan Tseng 2014/01/10 23:34:21 Didn't know that. Line 64/65 would also need to b
if not args:
parser.error('Missing target.')
« 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