projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a51226
)
Bug #288551 - Handle invalid cpv in portdbapi.aux_get() by raising KeyError.
author
Zac Medico
<zmedico@gentoo.org>
Sun, 11 Oct 2009 23:06:34 +0000
(23:06 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Sun, 11 Oct 2009 23:06:34 +0000
(23:06 -0000)
(trunk r14579)
svn path=/main/branches/2.1.7/; revision=14580
pym/portage/dbapi/porttree.py
patch
|
blob
|
history
diff --git
a/pym/portage/dbapi/porttree.py
b/pym/portage/dbapi/porttree.py
index e955a6a57e970541f944bc8f6cb0b1dece77c971..a993227cabf75abbdb0d04af5823e58dc5dd22fd 100644
(file)
--- a/
pym/portage/dbapi/porttree.py
+++ b/
pym/portage/dbapi/porttree.py
@@
-609,7
+609,11
@@
class portdbapi(dbapi):
return [aux_cache.get(x, "") for x in mylist]
cache_me = True
global auxdbkeys, auxdbkeylen
- cat,pkg = mycpv.split("/", 1)
+ try:
+ cat, pkg = mycpv.split("/", 1)
+ except ValueError:
+ # Missing slash. Can't find ebuild so raise KeyError.
+ raise KeyError(mycpv)
myebuild, mylocation = self.findname2(mycpv, mytree)