summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-12-21 01:11:44 +0000
committerZac Medico <zmedico@gentoo.org>2006-12-21 01:11:44 +0000
commit4a177ec5a8f7281d73a92c48f575fc432f2d6628 (patch)
tree245f6943e03489693a07ee75ba3c655e3a280e44
parent4873e71dd032f3f1fc00cb98f9d17ea9d3b1b390 (diff)
downloadportage-4a177ec5a8f7281d73a92c48f575fc432f2d6628.tar.gz
portage-4a177ec5a8f7281d73a92c48f575fc432f2d6628.tar.bz2
portage-4a177ec5a8f7281d73a92c48f575fc432f2d6628.zip
For installed packages with invalid depstrings, tell the user the location of the *DEPEND files.
svn path=/main/trunk/; revision=5341
-rwxr-xr-xbin/emerge6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/emerge b/bin/emerge
index 8d310da48..153160d8b 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -816,12 +816,16 @@ def show_invalid_depstring_notice(parent_node, depstring, error_msg):
p_type, p_root, p_key, p_status = parent_node
msg = []
if p_status == "nomerge":
+ category, pf = portage.catsplit(p_key)
+ pkg_location = os.path.join(p_root, portage.VDB_PATH, category, pf)
msg.append("Portage is unable to process the dependencies of the ")
msg.append("'%s' package. " % p_key)
msg.append("In order to correct this problem, the package ")
msg.append("should be uninstalled, reinstalled, or upgraded. ")
msg.append("As a temporary workaround, the --nodeps option can ")
- msg.append("be used to ignore all dependencies.")
+ msg.append("be used to ignore all dependencies. For reference, ")
+ msg.append("the problematic dependencies can be found in the ")
+ msg.append("*DEPEND files located in '%s/'." % pkg_location)
else:
msg.append("This package can not be installed. ")
msg.append("Please notify the '%s' package maintainer " % p_key)