From c9c508278ee0c30ad8ca7778a6daf4df3ba7df8d Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 12 Oct 2007 20:56:26 +0000 Subject: Bug #195527 - Add some more information to the file collision eerror message to try and prevent user confusion: - Hint that `equery belongs ` can be used to find the installed package that owns a file. - Advise then NOT to file a bug without reporting exactly which two packages install the same file(s). svn path=/main/trunk/; revision=8087 --- pym/portage/dbapi/vartree.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'pym') diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index be8ab8b67..992d8abaa 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -1786,12 +1786,18 @@ class dblink(object): vartree=self.vartree) if collisions: - msg = "This package wants to overwrite" + \ - " files belonging to other packages (see list below)." + \ + msg = "This package wants to overwrite one or more files that" + \ + " may belong to other packages (see list below)." + \ " Add \"collision-protect\" to FEATURES in make.conf" + \ " if you would like the merge to abort in cases like this." + \ - " If you have no clue what this is all about then go to" + \ - " http://bugs.gentoo.org and report it as a bug for this package." + " If you have determined that one or more of the files" + \ + " actually belong to another installed package then" + \ + " go to http://bugs.gentoo.org and report it as a bug." + \ + " Be sure to identify both this package and the other" + \ + " installed package in the bug report. Use a command such as " + \ + " \\`equery belongs \\` to identify the installed" + \ + " package that owns a file. Do NOT file a bug without" + \ + " reporting exactly which two packages install the same file(s)." self.settings["EBUILD_PHASE"] = "preinst" cmd = "source '%s/isolated-functions.sh' ; " % PORTAGE_BIN_PATH -- cgit v1.2.3-1-g7c22