From 14cd73ed3ce3f7d02782f72917c70071d2a6c091 Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Sun, 10 Sep 2017 16:41:54 -0700 Subject: Simplify logic in Spec.normalize() --- lib/spack/spack/spec.py | 8 ++++---- 1 file 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 -- cgit v1.2.3-70-g09d2