From 9a38813c3e73477e0ef09c565e237a87ec8dfbf8 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 30 Jul 2007 02:52:34 +0000 Subject: [PATCH] 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 --- pym/portage.py | 2 ++ 1 file changed, 2 insertions(+) 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] -- 2.26.2