committed by
GitHub
parent
60405e0456
commit
c4ef712b3b
19
src/main.rs
19
src/main.rs
@@ -90,7 +90,7 @@ fn run() -> Result<()> {
|
||||
|
||||
let mut report = Report::new();
|
||||
|
||||
#[cfg(any(target_os = "dragonfly", target_os = "freebsd", target_os = "linux"))]
|
||||
#[cfg(unix)]
|
||||
let sudo = utils::sudo();
|
||||
let run_type = executor::RunType::new(config.dry_run());
|
||||
|
||||
@@ -411,6 +411,23 @@ fn run() -> Result<()> {
|
||||
)?;
|
||||
}
|
||||
|
||||
if config.should_run(Step::Tlmgr) {
|
||||
execute(
|
||||
&mut report,
|
||||
"tlmgr",
|
||||
|| {
|
||||
generic::run_tlmgr_update(
|
||||
#[cfg(unix)]
|
||||
&sudo,
|
||||
#[cfg(windows)]
|
||||
&None,
|
||||
run_type,
|
||||
)
|
||||
},
|
||||
config.no_retry(),
|
||||
)?;
|
||||
}
|
||||
|
||||
if config.should_run(Step::Myrepos) {
|
||||
execute(
|
||||
&mut report,
|
||||
|
||||
Reference in New Issue
Block a user