summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-08-04 22:32:52 -0700
committerZac Medico <zmedico@gentoo.org>2010-08-04 22:32:52 -0700
commit23703fd2216045d0d4a0897e2993f2a8c3916eed (patch)
tree56f59601783a6cb079e0fd89977e9a8bb2d75317 /pym
parent8ed07e3ebab02e760dc499aff4ff95e62f70c208 (diff)
downloadportage-23703fd2216045d0d4a0897e2993f2a8c3916eed.tar.gz
portage-23703fd2216045d0d4a0897e2993f2a8c3916eed.tar.bz2
portage-23703fd2216045d0d4a0897e2993f2a8c3916eed.zip
Bug #330179 - Ensure that depgraph._show_unsatisfied_dep() only shows
masked packages if one of them satisfies required IUSE.
Diffstat (limited to 'pym')
-rw-r--r--pym/_emerge/depgraph.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
index 22f9b1f1a..0fa30a7d5 100644
--- a/pym/_emerge/depgraph.py
+++ b/pym/_emerge/depgraph.py
@@ -2296,11 +2296,14 @@ class depgraph(object):
break
elif unmasked_iuse_reasons:
- if masked_packages:
- # All packages with required IUSE are masked,
- # so display a normal masking message.
- pass
- else:
+ masked_with_iuse = False
+ for pkg in masked_pkg_instances:
+ if not pkg.iuse.get_missing_iuse(atom.use.required):
+ # Package(s) with required IUSE are masked,
+ # so display a normal masking message.
+ masked_with_iuse = True
+ break
+ if not masked_with_iuse:
show_missing_use = unmasked_iuse_reasons
mask_docs = False