For bug #149397, raise an InvalidDependString exception if a USE has no basename...
authorZac Medico <zmedico@gentoo.org>
Mon, 30 Jul 2007 02:52:34 +0000 (02:52 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 30 Jul 2007 02:52:34 +0000 (02:52 -0000)
svn path=/main/branches/2.1.2.9/; revision=7438

pym/portage.py

index 16f105394c8dc40848485509624a8ff433821287..a81e423f0c5d19f3ae4e58a1cfb1b4cb926937ad 100644 (file)
@@ -5980,6 +5980,8 @@ class portdbapi(dbapi):
                myfiles = []
                for x in newuris:
                        mya = os.path.basename(x)
+                       if not mya:
+                               raise portage_exception.InvalidDependString("URI has no basename: '%s'" % x)
                        if not mya in myfiles:
                                myfiles.append(mya)
                return [newuris, myfiles]