Skip to content

Commit 5e324bd

Browse files
committed
Style fixups
1 parent e0a5b9d commit 5e324bd

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/bootstrap/bootstrap.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ def verify(path, sha_path, verbose):
8989
" expected: {}".format(found, expected))
9090
return verified
9191

92+
9293
def unpack(tarball, dst, verbose=False, match=None):
9394
print("extracting " + tarball)
9495
fname = os.path.basename(tarball).replace(".tar.gz", "")
@@ -208,13 +209,13 @@ def fix_executable(self, fname):
208209
return
209210

210211
# At this point we're pretty sure the user is running NixOS
211-
print("Info: you seem to be running NixOS. Attempting to patch " + fname)
212+
print("info: you seem to be running NixOS. Attempting to patch " + fname)
212213

213214
try:
214215
interpreter = subprocess.check_output(["patchelf", "--print-interpreter", fname])
215216
interpreter = interpreter.strip().decode(default_encoding)
216217
except subprocess.CalledProcessError as e:
217-
print("Warning: failed to call patchelf: %s" % e)
218+
print("warning: failed to call patchelf: %s" % e)
218219
return
219220

220221
loader = interpreter.split("/")[-1]
@@ -223,7 +224,7 @@ def fix_executable(self, fname):
223224
ldd_output = subprocess.check_output(['ldd', '/run/current-system/sw/bin/sh'])
224225
ldd_output = ldd_output.strip().decode(default_encoding)
225226
except subprocess.CalledProcessError as e:
226-
print("Warning: unable to call ldd: %s" % e)
227+
print("warning: unable to call ldd: %s" % e)
227228
return
228229

229230
for line in ldd_output.splitlines():
@@ -232,15 +233,15 @@ def fix_executable(self, fname):
232233
loader_path = libname[:len(libname) - len(loader)]
233234
break
234235
else:
235-
print("Warning: unable to find the path to the dynamic linker")
236+
print("warning: unable to find the path to the dynamic linker")
236237
return
237238

238239
correct_interpreter = loader_path + loader
239240

240241
try:
241242
subprocess.check_output(["patchelf", "--set-interpreter", correct_interpreter, fname])
242243
except subprocess.CalledProcessError as e:
243-
print("Warning: failed to call patchelf: %s" % e)
244+
print("warning: failed to call patchelf: %s" % e)
244245
return
245246

246247
def stage0_cargo_rev(self):

0 commit comments

Comments
 (0)