diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-06-01 19:16:55 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-06-01 19:16:55 +0000 |
commit | 1e62401a283966c53697dd7aa93c98cb6452a95b (patch) | |
tree | 9423a090245dd5059824731d4d225145d2c8d393 /pym/portage.py | |
parent | 18be1bc2f537dc465343280c32352fcb68661e12 (diff) | |
download | portage-1e62401a283966c53697dd7aa93c98cb6452a95b.tar.gz portage-1e62401a283966c53697dd7aa93c98cb6452a95b.tar.bz2 portage-1e62401a283966c53697dd7aa93c98cb6452a95b.zip |
For bug #149397, raise an InvalidDependString exception if a USE has no basename. (trunk r6706)
svn path=/main/branches/2.1.2/; revision=6713
Diffstat (limited to 'pym/portage.py')
-rw-r--r-- | pym/portage.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage.py b/pym/portage.py index 20ed0569f..d4c6615b9 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -5983,6 +5983,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] |