From 283a4e60684c8cb0d8f70b2c2660546be55a8f59 Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Fri, 8 Apr 2022 01:17:28 -0700 Subject: [PATCH] remove no longer needed full hash check --- lib/spack/spack/environment/environment.py | 7 +------ 1 file changed, 1 insertion(+), 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 @@ def matching_spec(self, spec): 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