From: Zac Medico Date: Mon, 5 May 2008 16:55:47 +0000 (-0000) Subject: Handle a potential InvalidData exception in vardbapi.cp_all(). (trunk r10202) X-Git-Tag: v2.1.5~54 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=28393545f3fcaedcd38f6c4f4256d2ca29cf798b;p=portage.git Handle a potential InvalidData exception in vardbapi.cp_all(). (trunk r10202) svn path=/main/branches/2.1.2/; revision=10203 --- diff --git a/pym/portage.py b/pym/portage.py index 3a12812be..176a21dbe 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -6741,7 +6741,11 @@ class vardbapi(dbapi): for y in mylist: if y[0] == '*': y = y[1:] - mysplit=catpkgsplit(y) + try: + mysplit = catpkgsplit(y) + except portage_exception.InvalidData: + self.invalidentry(self.root+VDB_PATH+"/"+y) + continue if not mysplit: self.invalidentry(self.root+VDB_PATH+"/"+y) continue