diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-06-01 15:03:48 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-06-01 15:03:48 +0000 |
commit | de81596340ff43ceaa071be93952071531468d7b (patch) | |
tree | 60b018465a90fffe4e588b0cdf73629f5c557199 | |
parent | 80df4d593c66a45d855c1986bae3328a866318c7 (diff) | |
download | portage-de81596340ff43ceaa071be93952071531468d7b.tar.gz portage-de81596340ff43ceaa071be93952071531468d7b.tar.bz2 portage-de81596340ff43ceaa071be93952071531468d7b.zip |
For bug #149397, raise an InvalidDependString exception if a USE has no basename.
svn path=/main/trunk/; revision=6706
-rw-r--r-- | pym/portage/dbapi/porttree.py | 2 |
1 files changed, 2 insertions, 0 deletions
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] |