TeX live manager (fix #223) (#251)

This commit is contained in:
Roey Darwish Dror
2019-12-12 20:24:22 +02:00
committed by GitHub
parent 60405e0456
commit c4ef712b3b
7 changed files with 63 additions and 3 deletions

View File

@@ -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,