Skip to content

Commit

Permalink
fix(-A): don't attempt to remove something you just installed when `-…
Browse files Browse the repository at this point in the history
…-asdeps` is active

Fixes #942
  • Loading branch information
fosskers committed Sep 29, 2024
1 parent b1ef4bf commit 791b57e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#### Fixed

- Removed the check for `sudo` as it is causing more problems than it sought to fix.
- A humourous oversight involving simultaneous usage of `-Aa` and `--asdeps`.

## 4.0.7 (2024-09-15)

Expand Down
2 changes: 1 addition & 1 deletion rust/aura-pm/src/command/aur.rs
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ where
// `base-devel` is added automatically to the build if the user didn't
// have it installed. It would be counter-intuitive to have it removed
// again, so we avoid that here.
diff.retain(|p| **p != "base-devel");
diff.retain(|p| **p != "base-devel" && pkgs.contains(**p).not());
if diff.is_empty().not() {
crate::pacman::sudo_pacman(env, "-Rsu", NOTHING, diff).map_err(Error::Pacman)?;
}
Expand Down

0 comments on commit 791b57e

Please sign in to comment.