Make depgraph._reinstall_for_flags() always return all revelant flags.
authorZac Medico <zmedico@gentoo.org>
Thu, 12 Jul 2007 00:22:53 +0000 (00:22 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 12 Jul 2007 00:22:53 +0000 (00:22 -0000)
svn path=/main/trunk/; revision=7239

pym/emerge/__init__.py

index 8b2a87175f9eff00b164cb0d1731fccf164652d6..87cabe624a71bcd32f6ca44609224fd91219a398 100644 (file)
@@ -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"):