Skip to content

Commit f825677

Browse files
committed
force bool
1 parent 0d6fbb5 commit f825677

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

conda_libmamba_solver/solver2.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,9 @@ def _solve_attempt(
346346
def _solver_flags(self, in_state: SolverInputState) -> Request.Flags:
347347
flags = Request.Flags()
348348
flags.allow_downgrade = True
349-
flags.allow_uninstall = self.specs_to_remove and self._command in ("remove", None, NULL)
349+
flags.allow_uninstall = bool(
350+
self.specs_to_remove and self._command in ("remove", None, NULL)
351+
)
350352
flags.force_reinstall = in_state.force_reinstall
351353
flags.keep_dependencies = True
352354
flags.keep_user_specs = True

0 commit comments

Comments
 (0)