summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
Diffstat (limited to 'pym')
-rw-r--r--pym/portage.py2
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]