about summary refs log tree commit diff
path: root/src/bootstrap/bootstrap.py
diff options
context:
space:
mode:
authorXimin Luo <infinity0@pwned.gg>2016-07-06 00:44:31 +0200
committerXimin Luo <infinity0@pwned.gg>2016-07-06 00:44:31 +0200
commit933a1036ae12d728b2ccffa560154a8011a4c256 (patch)
tree8388098057ccab4872356060faa3191a705eabfe /src/bootstrap/bootstrap.py
parent912a9d0ad8e4c8b8a6c200d104a98982b3a07aeb (diff)
downloadrust-933a1036ae12d728b2ccffa560154a8011a4c256.tar.gz
rust-933a1036ae12d728b2ccffa560154a8011a4c256.zip
Tweak verbosity to hopefully better match intuitive expectations
Diffstat (limited to 'src/bootstrap/bootstrap.py')
-rw-r--r--src/bootstrap/bootstrap.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py
index ce5ab9fab84..832911beb58 100644
--- a/src/bootstrap/bootstrap.py
+++ b/src/bootstrap/bootstrap.py
@@ -32,14 +32,14 @@ def get(url, path, verbose=False):
     try:
         download(sha_path, sha_url, verbose)
         if os.path.exists(path):
-            if verify(path, sha_path, verbose):
+            if verify(path, sha_path, False):
                 print("using already-download file " + path)
                 return
             else:
                 print("ignoring already-download file " + path + " due to failed verification")
                 os.unlink(path)
         download(temp_path, url, verbose)
-        if not verify(temp_path, sha_path, verbose):
+        if not verify(temp_path, sha_path, True):
             raise RuntimeError("failed verification")
         print("moving {} to {}".format(temp_path, path))
         shutil.move(temp_path, path)