summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/spec.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/spack/spack/spec.py b/lib/spack/spack/spec.py
index ca3ad5f317..08625eaa82 100644
--- a/lib/spack/spack/spec.py
+++ b/lib/spack/spack/spec.py
@@ -3052,6 +3052,10 @@ class Spec(object):
Raises:
spack.variant.UnknownVariantError: on the first unknown variant found
"""
+ # concrete variants are always valid
+ if spec.concrete:
+ return
+
pkg_cls = spec.package_class
pkg_variants = pkg_cls.variants
# reserved names are variants that may be set on any package