summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/spec.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/spack/spack/spec.py b/lib/spack/spack/spec.py
index 910788c81a..56a6b9b4d6 100644
--- a/lib/spack/spack/spec.py
+++ b/lib/spack/spack/spec.py
@@ -2183,13 +2183,13 @@ class Spec(object):
if not self.name:
raise SpecError("Attempting to normalize anonymous spec")
- if self._normal and not force:
- return False
-
- # avoid any assumptions about concreteness when forced
+ # Set _normal and _concrete to False when forced
if force:
self._mark_concrete(False)
+ if self._normal:
+ return False
+
# Ensure first that all packages & compilers in the DAG exist.
self.validate_or_raise()
# Get all the dependencies into one DependencyMap