autounmask: Fix USE change messages to display the correct parent
authorSebastian Luther <SebastianLuther@gmx.de>
Fri, 24 Feb 2012 21:13:52 +0000 (22:13 +0100)
committerZac Medico <zmedico@gentoo.org>
Fri, 24 Feb 2012 21:53:21 +0000 (13:53 -0800)
Fixes bug 399863.

pym/_emerge/depgraph.py

index cdc50983b8216298546ec88a66690d372df50f29..bb3bf4adf0dcfd706f1111a53701ea6030ca0565 100644 (file)
@@ -2814,6 +2814,10 @@ class depgraph(object):
                        elif node is not start_node:
                                for ppkg, patom in all_parents[child]:
                                        if ppkg == node:
+                                               if child is start_node and unsatisfied_dependency and \
+                                                       InternalPackageSet(initial_atoms=(patom,)).findAtomForPackage(child):
+                                                       # This atom is satisfied by child, there must be another atom.
+                                                       continue
                                                atom = patom.unevaluated_atom
                                                break