Skip to content

Commit e788fa7

Browse files
committed
bootstrap: plumb verbosity into submodule ops
Fix some lints while I'm here.
1 parent 4a8933f commit e788fa7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/bootstrap/bootstrap.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,6 @@ def build_bootstrap(self):
625625

626626
def build_triple(self):
627627
"""Build triple as in LLVM"""
628-
default_encoding = sys.getdefaultencoding()
629628
config = self.get_toml('build')
630629
if config:
631630
return config
@@ -638,7 +637,7 @@ def update_submodules(self):
638637
return
639638
print('Updating submodules')
640639
default_encoding = sys.getdefaultencoding()
641-
run(["git", "submodule", "-q", "sync"], cwd=self.rust_root)
640+
run(["git", "submodule", "-q", "sync"], cwd=self.rust_root, verbose=self.verbose)
642641
submodules = [s.split(' ', 1)[1] for s in subprocess.check_output(
643642
["git", "config", "--file",
644643
os.path.join(self.rust_root, ".gitmodules"),
@@ -683,7 +682,7 @@ def bootstrap():
683682
try:
684683
with open(args.config or 'config.toml') as config:
685684
build.config_toml = config.read()
686-
except:
685+
except OSError:
687686
pass
688687

689688
if '\nverbose = 2' in build.config_toml:

0 commit comments

Comments
 (0)