Spec.satisfies: Remove optimization that fails for spec with no dependency satisfying failed conditional dep

Signed-off-by: Gregory Becker <becker33@llnl.gov>
This commit is contained in:
Gregory Becker 2025-05-12 14:17:03 -07:00
parent 7472a1db8a
commit 019957a225
No known key found for this signature in database
GPG Key ID: 2362541F6D14ED84

View File

@ -3429,10 +3429,6 @@ def satisfies(self, other: Union[str, "Spec"], deps: bool = True) -> bool:
if not other._dependencies: if not other._dependencies:
return True 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 # 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 # all the edges that have an abstract parent, and verify that they match some edge in the
# lhs. # lhs.