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

Unified Diff: download_from_google_storage.py

Issue 1747443002: Remove --no_resume from download_from_google_storage.py (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 4 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 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 6491540ba998c51bbbbfb785c67e10f9d2757c51..b186c63ad44f0a9fccaa76eea8c28853b00c7f10 100755
--- a/download_from_google_storage.py
+++ b/download_from_google_storage.py
@@ -374,7 +374,8 @@ def main(args):
parser.add_option('-e', '--boto',
help='Specify a custom boto file.')
parser.add_option('-c', '--no_resume', action='store_true',
- help='Resume download if file is partially downloaded.')
+ help='DEPRECATED: Resume download if file is '
+ 'partially downloaded.')
parser.add_option('-f', '--force', action='store_true',
help='Force download even if local file exists.')
parser.add_option('-i', '--ignore_errors', action='store_true',
@@ -500,12 +501,6 @@ def main(args):
else:
parser.error('Unreachable state.')
- # Check if output file already exists.
- if not options.directory and not options.force and not options.no_resume:
- if os.path.exists(options.output):
- parser.error('Output file %s exists and --no_resume is specified.'
- % options.output)
-
base_url = 'gs://%s' % options.bucket
return download_from_google_storage(
« 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