From 81d742d9b63b8a6305482d78c01274be69db5c3f Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 2 Aug 2008 00:32:51 +0000 Subject: In the file collision elog message, only say 'NOT merged' when collision-protect is enabled. Thanks to dberkholz for reporting. svn path=/main/trunk/; revision=11316 --- pym/portage/dbapi/vartree.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'pym') diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index ef5da5841..c8babe546 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -2684,10 +2684,14 @@ class dblink(object): # 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 + if collision_protect: + msg = "Package '%s' NOT merged due to file collisions." % \ + self.settings.mycpv + else: + msg = "Package '%s' merged despite file collisions." % \ + self.settings.mycpv + msg += " If necessary, refer to your elog " + \ + "messages for the whole content of the above message." eerror(wrap(msg, 70)) if collision_protect: -- cgit v1.2.3-1-g7c22