Make exception strings more informative.
authorZac Medico <zmedico@gentoo.org>
Sun, 4 Nov 2007 20:57:12 +0000 (20:57 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 4 Nov 2007 20:57:12 +0000 (20:57 -0000)
svn path=/main/trunk/; revision=8426

pym/portage/manifest.py

index ac08e5fb174b98be6da93ed9734c56a6010117af..93182f7648c544183192fa99bc8b954d1cc95c76 100644 (file)
@@ -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"