Fix --complete-graph-if-new-use for --autounmask.
authorZac Medico <zmedico@gentoo.org>
Tue, 10 Jul 2012 22:50:36 +0000 (15:50 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 10 Jul 2012 22:50:36 +0000 (15:50 -0700)
pym/_emerge/depgraph.py

index 703720cf0852e28040970c3ff22b5499c62238fe..552d5785476b58d651f25cfa1f610f7539d7bb84 100644 (file)
@@ -4679,8 +4679,8 @@ class depgraph(object):
                                                # to use.mask/force changes in the profile.
                                                if complete_if_new_use and \
                                                        (node.iuse.all != inst_pkg.iuse.all or
-                                                       node.use.enabled.intersection(node.iuse.all) !=
-                                                       inst_pkg.use.enabled.intersection(inst_pkg.iuse.all)):
+                                                       self._pkg_use_enabled(node).intersection(node.iuse.all) !=
+                                                       self._pkg_use_enabled(inst_pkg).intersection(inst_pkg.iuse.all)):
                                                        use_change = True
                                                        break