diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-07-30 02:52:34 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-07-30 02:52:34 +0000 |
commit | 9a38813c3e73477e0ef09c565e237a87ec8dfbf8 (patch) | |
tree | e771f58a0c800fa7faf48b8419fa6da6534f956b /pym/portage.py | |
parent | d395f23e4bd270a4295b1286a11c6c548d24d512 (diff) | |
download | portage-9a38813c3e73477e0ef09c565e237a87ec8dfbf8.tar.gz portage-9a38813c3e73477e0ef09c565e237a87ec8dfbf8.tar.bz2 portage-9a38813c3e73477e0ef09c565e237a87ec8dfbf8.zip |
For bug #149397, raise an InvalidDependString exception if a USE has no basename. (branches/2.1.2 r6713)
svn path=/main/branches/2.1.2.9/; revision=7438
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 16f105394..a81e423f0 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -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] |