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

pym/portage_manifest.py

index ccd32ec67a72c792305661f99a909671fe942833..59818adaf1f5f9d151241cbad0bdbf026156ee88 100644 (file)
@@ -455,9 +455,12 @@ class Manifest(object):
                                ps = portage_versions.pkgsplit(pf)
                                cpv = "%s/%s" % (cat, pf)
                                if not ps:
-                                       raise portage_exception.PortagePackageException(cpv)
+                                       raise portage_exception.PortagePackageException(
+                                               "Invalid package name: '%s'" % cpv)
                                if ps[0] != pn:
-                                       raise portage_exception.PortagePackageException(cpv)
+                                       raise portage_exception.PortagePackageException(
+                                               "Package name does not " + \
+                                               "match directory name: '%s'" % cpv)
                                cpvlist.append(cpv)
                        elif manifest2MiscfileFilter(f):
                                mytype = "MISC"