From 019957a2258c22531e7d986c890fa43f4f5305a9 Mon Sep 17 00:00:00 2001 From: Gregory Becker Date: Mon, 12 May 2025 14:17:03 -0700 Subject: [PATCH] Spec.satisfies: Remove optimization that fails for spec with no dependency satisfying failed conditional dep Signed-off-by: Gregory Becker --- lib/spack/spack/spec.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/spack/spack/spec.py b/lib/spack/spack/spec.py index e422fc44e9c..69fb895bf51 100644 --- a/lib/spack/spack/spec.py +++ b/lib/spack/spack/spec.py @@ -3429,10 +3429,6 @@ def satisfies(self, other: Union[str, "Spec"], deps: bool = True) -> bool: if not other._dependencies: return True - # If we have no dependencies, we can't satisfy any constraints. - if not self._dependencies and self.original_spec_format() >= 5 and not self.external: - return False - # If we arrived here, the lhs root node satisfies the rhs root node. Now we need to check # all the edges that have an abstract parent, and verify that they match some edge in the # lhs.