This commit is contained in:
Gregory Becker 2024-08-19 15:13:50 -07:00
parent a1d37bbd7a
commit 655ee3387b

View File

@ -4188,17 +4188,18 @@ def splice(self, other, transitive):
if v in self or v in self.package.virtuals_provided
]
if transitive:
virtuals_to_replace.extend([
v.name
for od in other.traverse(root=False)
for v in od.package.virtuals_provided
if v in self or v in self.package.virtuals_provided
])
virtuals_to_replace.extend(
[
v.name
for od in other.traverse(root=False)
for v in od.package.virtuals_provided
if v in self or v in self.package.virtuals_provided
]
)
if virtuals_to_replace:
deps_to_replace = {
self[v]: (other[v] if v in other else other)
for v in virtuals_to_replace
self[v]: (other[v] if v in other else other) for v in virtuals_to_replace
}
# deps_to_replace = [self[v] for v in virtuals_to_replace]
else: