Bug #330179 - Ensure that depgraph._show_unsatisfied_dep() only shows
authorZac Medico <zmedico@gentoo.org>
Thu, 5 Aug 2010 05:32:52 +0000 (22:32 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 5 Aug 2010 05:32:52 +0000 (22:32 -0700)
masked packages if one of them satisfies required IUSE.

pym/_emerge/depgraph.py

index 22f9b1f1ad7b1cff39b7d2221bd93c2cdeb1fd6d..0fa30a7d519639fef07a555e58b3cadee9263ee0 100644 (file)
@@ -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