Skip to content

Commit e3cccdb

Browse files
authored
Do remove all packages to clear with --no-deps, without raising if missing (#632)
* Do remove all packages to clear with --no-deps, without raising if missing * add news
1 parent 819a2fa commit e3cccdb

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

conda_libmamba_solver/state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ def post_solve(self, solver: type[Solver]):
693693
if installed:
694694
self.records[name] = installed
695695
else:
696-
self.records.pop(record.name)
696+
self.records.pop(name, None)
697697

698698
elif sis.update_modifier.UPDATE_DEPS:
699699
# Here we have to SAT solve again :( It's only now that we know the dependency

news/632-only-deps

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
### Enhancements
2+
3+
* <news item>
4+
5+
### Bug fixes
6+
7+
* Remove all packages with `--no-deps`, not just the last one to be analyzed. (#632)
8+
9+
### Deprecations
10+
11+
* <news item>
12+
13+
### Docs
14+
15+
* <news item>
16+
17+
### Other
18+
19+
* <news item>

0 commit comments

Comments
 (0)