Skip to content

Commit

Permalink
Fix regression on 'opam upgrade <package>' upgrading unrelated things
Browse files Browse the repository at this point in the history
Regression introduced in 4db0c13, which is
dedicated to a different case (functionality of this patch is preserved)
  • Loading branch information
AltGr committed Jan 22, 2025
1 parent f80c027 commit 8897cd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/opamClient.ml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ let compute_upgrade_t
| Some nv -> not (OpamPackage.Set.mem nv (Lazy.force t.available_packages)))
atoms
in
let criteria = if to_install = [] then `Upgrade else `Default in
let criteria = if to_install = [] && all then `Upgrade else `Default in
if all then
names,
OpamSolution.resolve t Upgrade
Expand Down

0 comments on commit 8897cd2

Please sign in to comment.