summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/environment/environment.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/spack/spack/environment/environment.py b/lib/spack/spack/environment/environment.py
index c3d4c67c49..d17a0afb58 100644
--- a/lib/spack/spack/environment/environment.py
+++ b/lib/spack/spack/environment/environment.py
@@ -1688,12 +1688,7 @@ class Environment(object):
for user_spec, concretized_user_spec in self.concretized_specs():
# Deal with concrete specs differently
if spec.concrete:
- # TODO: do we still need the extra check comparing dag hashes?
- is_match = (
- spec in concretized_user_spec and
- concretized_user_spec[spec.name].dag_hash() == spec.dag_hash()
- )
- if is_match:
+ if spec in concretized_user_spec:
matches[spec] = spec
continue