-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement --prune flag for mamba env update
This fixes #688 and the similar issue for conda conda/conda#7279. The prune flag is implemented by running the solver as if it was given an empty prefix and then computing the diff between the current prefix and the newly solved target and executing those resulting links and unlinks. This assumes that it is always possible to transform a given prefix to any other consistent set of packages, since the solver never sees the list of currently installed packages. Furthermore a small fix for leaking temporary files is included.
- Loading branch information
Showing
2 changed files
with
64 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters