From: Zac Medico Date: Wed, 10 May 2006 03:52:46 +0000 (-0000) Subject: Neglect EOFError during mtimedb loading since this error seems to be common when... X-Git-Tag: v2.1_rc1~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2ab97ef0bc020f42508de4de62b4920931aaca20;p=portage.git Neglect EOFError during mtimedb loading since this error seems to be common when the mtimedb has been corrupted. svn path=/main/trunk/; revision=3338 --- diff --git a/pym/portage.py b/pym/portage.py index e2e575af9..fb7679d59 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -6941,7 +6941,7 @@ def init_legacy_globals(): mtimedb = load_mtimedb(f) f.close() del f - except (IOError, OSError): + except (IOError, OSError, EOFError): mtimedb = {"updates":{}, "ldpath":{}, "version":"", "starttime":0} # ========================================================================