* [gentoo-commits] portage r10202 - main/trunk/pym/portage/dbapi
@ 2008-05-05 16:55 Zac Medico (zmedico)
0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2008-05-05 16:55 UTC (permalink / raw
To: gentoo-commits
Author: zmedico
Date: 2008-05-05 16:55:18 +0000 (Mon, 05 May 2008)
New Revision: 10202
Modified:
main/trunk/pym/portage/dbapi/vartree.py
Log:
Handle a potential InvalidData exception in vardbapi.cp_all().
Modified: main/trunk/pym/portage/dbapi/vartree.py
===================================================================
--- main/trunk/pym/portage/dbapi/vartree.py 2008-05-05 11:17:47 UTC (rev 10201)
+++ main/trunk/pym/portage/dbapi/vartree.py 2008-05-05 16:55:18 UTC (rev 10202)
@@ -9,7 +9,7 @@
from portage.dbapi import dbapi
from portage.dep import dep_getslot, use_reduce, paren_reduce, isvalidatom, \
isjustname, dep_getkey, match_from_list
-from portage.exception import InvalidPackageName, InvalidAtom, \
+from portage.exception import InvalidAtom, InvalidData, InvalidPackageName, \
FileNotFound, PermissionDenied, UnsupportedAPIException
from portage.locks import lockdir, unlockdir
from portage.output import bold, red, green
@@ -475,7 +475,11 @@
for y in mylist:
if y[0] == '*':
y = y[1:]
- mysplit = catpkgsplit(y)
+ try:
+ mysplit = catpkgsplit(y)
+ except portage.exception.InvalidData:
+ self.invalidentry(self.getpath(y))
+ continue
if not mysplit:
self.invalidentry(self.getpath(y))
continue
--
gentoo-commits@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-05-05 16:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-05 16:55 [gentoo-commits] portage r10202 - main/trunk/pym/portage/dbapi Zac Medico (zmedico)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox