diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-11-04 20:57:12 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-11-04 20:57:12 +0000 |
commit | 898a3ea077f154bd6dbce98f2240ab2b318d1b00 (patch) | |
tree | cf205f6ff03d90acfaa91d0ece700e023909ca3a | |
parent | 49784fe9fe641cecad6987f2d9afe6dc4b812b9c (diff) | |
download | portage-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.py | 7 |
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" |