summaryrefslogtreecommitdiffstats
path: root/pym/_emerge
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-12-18 09:27:37 +0000
committerZac Medico <zmedico@gentoo.org>2007-12-18 09:27:37 +0000
commitc5016fbdb4ed87ea971e363b5d0906310fbe965d (patch)
tree84e56c863be881dc480e632090889394b1bd669d /pym/_emerge
parentb8c06f1f9b0a3e456b89d18380274b34e6e243ad (diff)
downloadportage-c5016fbdb4ed87ea971e363b5d0906310fbe965d.tar.gz
portage-c5016fbdb4ed87ea971e363b5d0906310fbe965d.tar.bz2
portage-c5016fbdb4ed87ea971e363b5d0906310fbe965d.zip
Display the merge list with blockers any time that there are
blockers, instead of telling the user to try again with --pretend. svn path=/main/trunk/; revision=8953
Diffstat (limited to 'pym/_emerge')
-rw-r--r--pym/_emerge/__init__.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 22bf73f96..85b0566b6 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -6535,12 +6535,15 @@ def action_build(settings, trees, mtimedb,
for x in pkglist:
if x[0] != "blocks":
continue
- msg = "Error: the " + x[2] + " package conflicts " + \
- "with another package; the two packages cannot " + \
- "be installed on the same system together. " + \
- "Please use 'emerge --pretend' to determine blockers."
+ retval = mydepgraph.display(mydepgraph.altlist(
+ reversed=("--tree" in myopts)),
+ favorites=favorites)
+ msg = "Error: The above package list contains " + \
+ "packages which cannot be installed " + \
+ "at the same time on the same system."
prefix = bad(" * ")
from textwrap import wrap
+ print
for line in wrap(msg, 70):
print prefix + line
if "--quiet" not in myopts: