Fix --newuse code to compare installed package USE to the USE that a binary
authorZac Medico <zmedico@gentoo.org>
Thu, 30 Apr 2009 06:49:12 +0000 (06:49 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 30 Apr 2009 06:49:12 +0000 (06:49 -0000)
package was built with (instead of config["PORTAGE_USE"]). (trunk r13253)

svn path=/main/branches/2.1.6/; revision=13432

pym/_emerge/__init__.py

index 7062480fe7833270afc621992b5b48c69ee92bfd..eb90a769ed37013c03bfed1fcf6b59ffa82c8b4e 100644 (file)
@@ -6392,7 +6392,7 @@ class depgraph(object):
                                                old_use = vardb.aux_get(cpv, ["USE"])[0].split()
                                                old_iuse = set(filter_iuse_defaults(
                                                        vardb.aux_get(cpv, ["IUSE"])[0].split()))
-                                               cur_use = pkgsettings["PORTAGE_USE"].split()
+                                               cur_use = pkg.use.enabled
                                                cur_iuse = pkg.iuse.all
                                                reinstall_for_flags = \
                                                        self._reinstall_for_flags(