Bug #262012 - Only trigger the slot conflict message about --newuse when
authorZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 22:28:16 +0000 (22:28 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 22:28:16 +0000 (22:28 -0000)
the installed version is the same as the new one. If they are different
versions then there's some other problem.

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

pym/_emerge/__init__.py

index 88ec8bde3831a7958b23926eff518504c85ba9c6..d103f9ecfdfb349365a35733815b90a891e782c2 100644 (file)
@@ -4865,7 +4865,11 @@ class depgraph(object):
                        # This shouldn't happen.
                        return None
 
-               if unmatched_node.installed and not matched_node.installed:
+               if unmatched_node.installed and not matched_node.installed and \
+                       unmatched_node.cpv == matched_node.cpv:
+                       # If the conflicting packages are the same version then
+                       # --newuse should be all that's needed. If they are different
+                       # versions then there's some other problem.
                        return "New USE are correctly set, but --newuse wasn't" + \
                                " requested, so an installed package with incorrect USE " + \
                                "happened to get pulled into the dependency graph. " + \