summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Luther <SebastianLuther@gmx.de>2010-09-03 22:42:05 +0200
committerZac Medico <zmedico@gentoo.org>2010-09-03 13:47:00 -0700
commit71b6461faaa6ec66232ecfba98b13c12c94b6f17 (patch)
treeb6ff670aacdb134b0a3c5cc4f20c9e51e5d023ea
parentb053998a5b745c886a529e20a641dbbac77109e5 (diff)
downloadportage-71b6461faaa6ec66232ecfba98b13c12c94b6f17.tar.gz
portage-71b6461faaa6ec66232ecfba98b13c12c94b6f17.tar.bz2
portage-71b6461faaa6ec66232ecfba98b13c12c94b6f17.zip
autounmask: Don't print masked/forced flags in "required by" comments
-rw-r--r--pym/_emerge/depgraph.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
index 12f12d472..e90d273d1 100644
--- a/pym/_emerge/depgraph.py
+++ b/pym/_emerge/depgraph.py
@@ -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 = []