Fix --newuse code to compare installed package USE to the USE that a binary
authorZac Medico <zmedico@gentoo.org>
Mon, 30 Mar 2009 21:54:39 +0000 (21:54 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 30 Mar 2009 21:54:39 +0000 (21:54 -0000)
package was built with (instead of config["PORTAGE_USE"]).

svn path=/main/trunk/; revision=13253

pym/_emerge/__init__.py

index 2f28b4e175fefca53d04f48a5227e0a979788efa..229fa57b6a7d59de353bd491e00ec7a6403d87ee 100644 (file)
@@ -6408,7 +6408,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(