Skip to content

Commit

Permalink
depgraph: Ignore blockers when computing virtual deps visibility
Browse files Browse the repository at this point in the history
If a `virtual/` package declares a blocker to a package that doesn't
exist, then `_virt_deps_visible` incorrectly marks the virtual as
"not visible". Blockers should be ignored when performing the deps
visibility test since blockers are handled later in the pipeline.

Change-Id: I79786aaf832b13525f8162992862bb3996e3239e
  • Loading branch information
ismell committed Oct 16, 2024
1 parent 123a7be commit 2a7d598
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/_emerge/depgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -6022,6 +6022,8 @@ def _virt_deps_visible(self, pkg, ignore_use=False):

for atoms in rdepend.values():
for atom in atoms:
if atom.blocker:
continue
if ignore_use:
atom = atom.without_use
pkg, existing = self._select_package(pkg.root, atom)
Expand Down

0 comments on commit 2a7d598

Please sign in to comment.