From de81596340ff43ceaa071be93952071531468d7b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 1 Jun 2007 15:03:48 +0000 Subject: [PATCH] For bug #149397, raise an InvalidDependString exception if a USE has no basename. svn path=/main/trunk/; revision=6706 --- pym/portage/dbapi/porttree.py | 2 ++ 1 file changed, 2 insertions(+) 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] -- 2.26.2