Trigger a rebuild with --newuse when IUSE has changed for bug #116955.
authorZac Medico <zmedico@gentoo.org>
Mon, 24 Jul 2006 15:25:37 +0000 (15:25 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 24 Jul 2006 15:25:37 +0000 (15:25 -0000)
svn path=/main/trunk/; revision=4014

bin/emerge

index 06e1473cad484f6cafe1bf8a233cecdc2b6761c4..83584a9cfe18c15c3357f2c8ef5505dd68dbb490 100755 (executable)
@@ -746,7 +746,10 @@ class depgraph:
                                vardbapi.cpv_exists(mykey):
                                old_use = vardbapi.aux_get(mykey, ["USE"])[0].split()
                                iuses = set(mydbapi.aux_get(mykey, ["IUSE"])[0].split())
-                               if iuses.intersection(old_use) != \
+                               if iuses.difference(
+                                       vardbapi.aux_get(mykey, ["IUSE"])[0].split()):
+                                       merging = 1
+                               elif iuses.intersection(old_use) != \
                                        iuses.intersection(myuse):
                                        merging=1