Fix to concretize.lp

This commit is contained in:
psakiev
2022-01-25 23:04:02 -07:00
parent a9996db35c
commit eb95a50e08

View File

@@ -827,6 +827,9 @@ no_flags(Package, FlagType)
{ hash(Package, Hash) : installed_hash(Package, Hash) } 1
:- node(Package), error("Internal error: package must resolve to at most one hash").
% you can't choose an installed hash for a dev spec
:- hash(Package, Hash), variant_set(Package, "dev_path", _).
% if a hash is selected, we impose all the constraints that implies
impose(Hash) :- hash(Package, Hash).