summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-11-04 20:57:12 +0000
committerZac Medico <zmedico@gentoo.org>2007-11-04 20:57:12 +0000
commit898a3ea077f154bd6dbce98f2240ab2b318d1b00 (patch)
treecf205f6ff03d90acfaa91d0ece700e023909ca3a
parent49784fe9fe641cecad6987f2d9afe6dc4b812b9c (diff)
downloadportage-898a3ea077f154bd6dbce98f2240ab2b318d1b00.tar.gz
portage-898a3ea077f154bd6dbce98f2240ab2b318d1b00.tar.bz2
portage-898a3ea077f154bd6dbce98f2240ab2b318d1b00.zip
Make exception strings more informative.
svn path=/main/trunk/; revision=8426
-rw-r--r--pym/portage/manifest.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/pym/portage/manifest.py b/pym/portage/manifest.py
index ac08e5fb1..93182f764 100644
--- a/pym/portage/manifest.py
+++ b/pym/portage/manifest.py
@@ -453,9 +453,12 @@ class Manifest(object):
ps = portage.versions.pkgsplit(pf)
cpv = "%s/%s" % (cat, pf)
if not ps:
- raise PortagePackageException(cpv)
+ raise PortagePackageException(
+ "Invalid package name: '%s'" % cpv)
if ps[0] != pn:
- raise PortagePackageException(cpv)
+ raise PortagePackageException(
+ "Package name does not " + \
+ "match directory name: '%s'" % cpv)
cpvlist.append(cpv)
elif manifest2MiscfileFilter(f):
mytype = "MISC"