Display the merge list with blockers any time that there are
authorZac Medico <zmedico@gentoo.org>
Tue, 18 Dec 2007 09:28:32 +0000 (09:28 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 18 Dec 2007 09:28:32 +0000 (09:28 -0000)
blockers, instead of telling the user to try again with
--pretend. (trunk r8953)

svn path=/main/branches/2.1.2/; revision=8954

bin/emerge

index 608c1ba9bd9a058bcf689179d4cce39b8fb895c0..9cfb9bdb9f9d3d1473d797179e073a246cb93c17 100755 (executable)
@@ -6047,12 +6047,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: