summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGreg Becker <becker33@llnl.gov>2023-11-02 12:17:54 -0700
committerGitHub <noreply@github.com>2023-11-02 20:17:54 +0100
commitfa08de669e8af0186000128cd7c3be3f67bac865 (patch)
tree4b9ea48b6cc3cd96cff9abf6b83b0a675e7adc27 /lib
parentc2193b54701dbe8608f0677d188163b1d95f05fa (diff)
downloadspack-fa08de669e8af0186000128cd7c3be3f67bac865.tar.gz
spack-fa08de669e8af0186000128cd7c3be3f67bac865.tar.bz2
spack-fa08de669e8af0186000128cd7c3be3f67bac865.tar.xz
spack-fa08de669e8af0186000128cd7c3be3f67bac865.zip
bugfix: computing NodeID2 in requirement node_flag_source (#40846)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/solver/concretize.lp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/solver/concretize.lp b/lib/spack/spack/solver/concretize.lp
index 3b3a547eff..b5a9ebf77a 100644
--- a/lib/spack/spack/solver/concretize.lp
+++ b/lib/spack/spack/solver/concretize.lp
@@ -720,7 +720,7 @@ requirement_group_satisfied(node(ID, Package), X) :-
activate_requirement(node(NodeID1, Package1), RequirementID),
pkg_fact(Package1, condition_effect(ConditionID, EffectID)),
imposed_constraint(EffectID, "node_flag_source", Package1, FlagType, Package2),
- imposed_packages(NodeID2, Package2).
+ imposed_nodes(EffectID, node(NodeID2, Package2), node(NodeID1, Package1)).
requirement_weight(node(ID, Package), Group, W) :-
W = #min {