summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-11-25 22:32:16 +0000
committerZac Medico <zmedico@gentoo.org>2009-11-25 22:32:16 +0000
commitda79e9f4a5403d5462b55ffefab7aedd79776534 (patch)
tree374b02dbb2c02398d7d6c4369cf448442012685f
parentBug #293998 - Use OSError.errno instead of trying to subscript the exception (diff)
downloadportage-da79e9f4a5403d5462b55ffefab7aedd79776534.tar.gz
portage-da79e9f4a5403d5462b55ffefab7aedd79776534.tar.bz2
portage-da79e9f4a5403d5462b55ffefab7aedd79776534.zip
Bug #293614 - When the backtracking limit is reached and there is a SLOT
conflict to display, hint that a larger --backtrack value might solve the conflict automatically. (trunk r14875) svn path=/main/branches/2.1.7/; revision=14888
-rw-r--r--pym/_emerge/depgraph.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
index d779b9cc5..684775296 100644
--- a/pym/_emerge/depgraph.py
+++ b/pym/_emerge/depgraph.py
@@ -538,6 +538,14 @@ class depgraph(object):
msg.append("satisfy simultaneously. If such a conflict exists in ")
msg.append("the dependencies of two different packages, then those ")
msg.append("packages can not be installed simultaneously.")
+ backtrack_opt = self._frozen_config.myopts.get('--backtrack')
+ if not self._dynamic_config._allow_backtracking and \
+ (backtrack_opt is None or \
+ (backtrack_opt > 0 and backtrack_opt < 30)):
+ msg.append(" You may want to try a larger value of the ")
+ msg.append("--backtrack option, such as --backtrack=30, ")
+ msg.append("in order to see if that will solve this conflict ")
+ msg.append("automatically.")
from formatter import AbstractFormatter, DumbWriter
f = AbstractFormatter(DumbWriter(sys.stderr, maxcol=72))