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

bin/emerge

index 3bbdc5a618953b43d37e7d95f69d128c85a87819..f6d51aa1c4e202f8de3966792745392f5ed579f0 100755 (executable)
@@ -1211,10 +1211,8 @@ class depgraph:
                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"):