Add flags to disable rust and cargo (fix #200)

This commit is contained in:
Roey Darwish Dror
2019-08-19 20:15:01 +03:00
parent aed18426f7
commit f5c2368a4d
2 changed files with 23 additions and 12 deletions

View File

@@ -278,18 +278,23 @@ fn run() -> Result<(), Error> {
)?;
}
execute(
&mut report,
"rustup",
|| generic::run_rustup(&base_dirs, run_type),
config.no_retry(),
)?;
execute(
&mut report,
"cargo",
|| generic::run_cargo_update(run_type),
config.no_retry(),
)?;
if config.should_run(Step::Rustup) {
execute(
&mut report,
"rustup",
|| generic::run_rustup(&base_dirs, run_type),
config.no_retry(),
)?;
}
if config.should_run(Step::Cargo) {
execute(
&mut report,
"cargo",
|| generic::run_cargo_update(run_type),
config.no_retry(),
)?;
}
if config.should_run(Step::Emacs) {
execute(&mut report, "Emacs", || emacs.upgrade(run_type), config.no_retry())?;