autounmask: Don't print masked/forced flags in "required by" comments
authorSebastian Luther <SebastianLuther@gmx.de>
Fri, 3 Sep 2010 20:42:05 +0000 (22:42 +0200)
committerZac Medico <zmedico@gentoo.org>
Fri, 3 Sep 2010 20:47:00 +0000 (13:47 -0700)
pym/_emerge/depgraph.py

index 12f12d4723b4637a335e115f673a22366059f410..e90d273d19851a8447e0c23bafb0dcf2e3b81318 100644 (file)
@@ -5202,6 +5202,10 @@ class depgraph(object):
                                        for dep_str in dep_strings:
                                                affecting_use.update(extract_affecting_use(dep_str, atom))
                                        
+                                       #Don't show flags as 'affecting' if the user can't change them,
+                                       affecting_use.difference_update(node.root_config.settings.usemask, \
+                                               node.root_config.settings.useforce)
+
                                        pkg_name = node.cpv
                                        if affecting_use:
                                                usedep = []