about summary refs log tree commit diff
path: root/src/bootstrap/bootstrap.py
diff options
context:
space:
mode:
authorAndrew Cann <shum@canndrew.org>2017-02-17 14:00:58 +0800
committerAndrew Cann <shum@canndrew.org>2017-02-17 14:00:58 +0800
commit5e324bdc91415ae222becf362f68ffdebf3ec804 (patch)
tree412cd16aaacab0f7b05300e472100829022503ef /src/bootstrap/bootstrap.py
parente0a5b9d746cb7083a849773dc84f9e0a8e1e5621 (diff)
downloadrust-5e324bdc91415ae222becf362f68ffdebf3ec804.tar.gz
rust-5e324bdc91415ae222becf362f68ffdebf3ec804.zip
Style fixups
Diffstat (limited to 'src/bootstrap/bootstrap.py')
-rw-r--r--src/bootstrap/bootstrap.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py
index 6ba3994c485..d21e5719ea2 100644
--- a/src/bootstrap/bootstrap.py
+++ b/src/bootstrap/bootstrap.py
@@ -89,6 +89,7 @@ def verify(path, sha_path, verbose):
                "    expected: {}".format(found, expected))
     return verified
 
+
 def unpack(tarball, dst, verbose=False, match=None):
     print("extracting " + tarball)
     fname = os.path.basename(tarball).replace(".tar.gz", "")
@@ -208,13 +209,13 @@ class RustBuild(object):
             return
 
         # At this point we're pretty sure the user is running NixOS
-        print("Info: you seem to be running NixOS. Attempting to patch " + fname)
+        print("info: you seem to be running NixOS. Attempting to patch " + fname)
 
         try:
             interpreter = subprocess.check_output(["patchelf", "--print-interpreter", fname])
             interpreter = interpreter.strip().decode(default_encoding)
         except subprocess.CalledProcessError as e:
-            print("Warning: failed to call patchelf: %s" % e)
+            print("warning: failed to call patchelf: %s" % e)
             return
 
         loader = interpreter.split("/")[-1]
@@ -223,7 +224,7 @@ class RustBuild(object):
             ldd_output = subprocess.check_output(['ldd', '/run/current-system/sw/bin/sh'])
             ldd_output = ldd_output.strip().decode(default_encoding)
         except subprocess.CalledProcessError as e:
-            print("Warning: unable to call ldd: %s" % e)
+            print("warning: unable to call ldd: %s" % e)
             return
 
         for line in ldd_output.splitlines():
@@ -232,7 +233,7 @@ class RustBuild(object):
                 loader_path = libname[:len(libname) - len(loader)]
                 break
         else:
-            print("Warning: unable to find the path to the dynamic linker")
+            print("warning: unable to find the path to the dynamic linker")
             return
 
         correct_interpreter = loader_path + loader
@@ -240,7 +241,7 @@ class RustBuild(object):
         try:
             subprocess.check_output(["patchelf", "--set-interpreter", correct_interpreter, fname])
         except subprocess.CalledProcessError as e:
-            print("Warning: failed to call patchelf: %s" % e)
+            print("warning: failed to call patchelf: %s" % e)
             return
 
     def stage0_cargo_rev(self):