From 5a442f6d4cc5ad074e765ce8ddc0ef52d8b1314c Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 26 Jul 2008 07:22:06 +0000 Subject: Bug #228085 - In the event of a file collision, the explanation about the collision and how to solve it may not be visible via a scrollback buffer, especially if the number of file collisions is large. Therefore, show a summary at the end and refer the user to the elog messages. svn path=/main/trunk/; revision=11196 --- pym/portage/dbapi/vartree.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 251f62231..61d08f83c 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -2655,10 +2655,23 @@ class dblink(object): for f in sorted(owned_files): msg.append("\t%s" % os.path.join(destroot, f.lstrip(os.path.sep))) + msg.append("") eerror(msg) + if not owners: eerror(["None of the installed" + \ - " packages claim the file(s)."]) + " packages claim the file(s).", ""]) + + # The explanation about the collision and how to solve + # it may not be visible via a scrollback buffer, especially + # if the number of file collisions is large. Therefore, + # show a summary at the end. + msg = ("Package '%s' NOT merged due to " + \ + "file collisions. If necessary, refer to your elog " + \ + "messages for the whole content of the above message.") % \ + self.settings.mycpv + eerror(wrap(msg, 70)) + if collision_protect: return 1 -- cgit v1.2.3-1-g7c22