summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-03-12 05:54:20 +0000
committerZac Medico <zmedico@gentoo.org>2009-03-12 05:54:20 +0000
commit8626fa2c615240960e2bc3f78169fae87addf66e (patch)
treef7d205353a0df7cb9c74e6c0946921c6b0587ccd /pym
parentadc02695813ffa939e44165994c45719d0f9b7ae (diff)
downloadportage-8626fa2c615240960e2bc3f78169fae87addf66e.tar.gz
portage-8626fa2c615240960e2bc3f78169fae87addf66e.tar.bz2
portage-8626fa2c615240960e2bc3f78169fae87addf66e.zip
Bug #262012 - Only trigger the slot conflict message about --newuse when
the installed version is the same as the new one. If they are different versions then there's some other problem. (trunk r13059) svn path=/main/branches/2.1.6/; revision=13073
Diffstat (limited to 'pym')
-rw-r--r--pym/_emerge/__init__.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index efbd2afd5..878812b9a 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -4849,7 +4849,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. " + \