summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-07-12 00:22:53 +0000
committerZac Medico <zmedico@gentoo.org>2007-07-12 00:22:53 +0000
commited5e644040ef454dcfc3da77a16829e23325b185 (patch)
tree2e741fd3e9253bbe94e545dec366c68267f27708
parentedf8f1aa8c0301656f82f1c3a241aa44de184821 (diff)
downloadportage-ed5e644040ef454dcfc3da77a16829e23325b185.tar.gz
portage-ed5e644040ef454dcfc3da77a16829e23325b185.tar.bz2
portage-ed5e644040ef454dcfc3da77a16829e23325b185.zip
Make depgraph._reinstall_for_flags() always return all revelant flags.
svn path=/main/trunk/; revision=7239
-rw-r--r--pym/emerge/__init__.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py
index 8b2a87175..87cabe624 100644
--- a/pym/emerge/__init__.py
+++ b/pym/emerge/__init__.py
@@ -1210,10 +1210,8 @@ class depgraph(object):
if "--newuse" in self.myopts:
flags = orig_iuse.symmetric_difference(
cur_iuse).difference(forced_flags)
- if flags:
- return flags
- flags = orig_iuse.intersection(orig_use).symmetric_difference(
- cur_iuse.intersection(cur_use))
+ flags.update(orig_iuse.intersection(orig_use).symmetric_difference(
+ cur_iuse.intersection(cur_use)))
if flags:
return flags
elif "changed-use" == self.myopts.get("--reinstall"):