concretizer: dependency conditions cannot hold if package is external

fixes #20736

Before this one line fix we were erroneously deducing
that dependency conditions hold even if a package
was external.

This may result in answer sets that contain imposed
conditions on a node without the node being present
in the DAG, hence #20736.
This commit is contained in:
Massimiliano Culpo
2021-01-12 12:35:48 +01:00
committed by Tamara Dahlgren
parent ffa8479004
commit 7162e15531
4 changed files with 12 additions and 2 deletions

View File

@@ -11,5 +11,8 @@ class ExternalBuildableWithVariant(Package):
url = "http://somewhere.com/module-1.0.tar.gz"
version('1.0', '1234567890abcdef1234567890abcdef')
version('0.9', '1234567890abcdef1234567890abcdef')
variant('baz', default=False, description='nope')
depends_on('c@1.0', when='@0.9')