Compare commits

...

1 Commits

Author SHA1 Message Date
psakievich
551aefb921 Check extensions for exact matches
I ran into an issue when I have an upstream and a binary cache with an identical installation of python (DAG hash match). It led to two entries in the extendee_spec list.

This PR ensures that extendees are not identical before extending.
2024-04-02 16:30:06 -06:00

View File

@@ -1284,7 +1284,7 @@ def extendee_spec(self):
# If the extendee is in the spec's deps already, return that.
for dep in self.spec.traverse(deptype=("link", "run")):
if dep.name in self.extendees:
if dep.name in self.extendees and dep not in deps:
deps.append(dep)
if deps: