From: Zac Medico Date: Fri, 1 Jun 2007 15:03:48 +0000 (-0000) Subject: For bug #149397, raise an InvalidDependString exception if a USE has no basename. X-Git-Tag: v2.2_pre1~1315 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=de81596340ff43ceaa071be93952071531468d7b;p=portage.git For bug #149397, raise an InvalidDependString exception if a USE has no basename. svn path=/main/trunk/; revision=6706 --- diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py index c99b0193c..5bf1e30a6 100644 --- a/pym/portage/dbapi/porttree.py +++ b/pym/portage/dbapi/porttree.py @@ -371,6 +371,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]