Skip to content

Commit

Permalink
Also run mamba clean
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkapur committed Feb 22, 2025
1 parent 477a7e0 commit 72ecda1
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/steps/generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -548,12 +548,23 @@ pub fn run_mamba_update(ctx: &ExecutionContext) -> Result<()> {

print_separator("Mamba");

let mut command = ctx.run_type().execute(mamba);
let mut command = ctx.run_type().execute(&mamba);
command.args(["update", "--all", "-n", "base"]);
if ctx.config().yes(Step::Mamba) {
command.arg("--yes");
}
command.status_checked()
command.status_checked()?;

if ctx.config().cleanup() {
let mut command = ctx.run_type().execute(&mamba);
command.args(["clean", "--all"]);
if ctx.config().yes(Step::Mamba) {
command.arg("--yes");
}
command.status_checked()?;
}

Ok(())
}

pub fn run_miktex_packages_update(ctx: &ExecutionContext) -> Result<()> {
Expand Down

0 comments on commit 72ecda1

Please sign in to comment.