diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-05-10 03:52:46 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-05-10 03:52:46 +0000 |
commit | 2ab97ef0bc020f42508de4de62b4920931aaca20 (patch) | |
tree | 6ed42f503b3b7c73dd3e5ad9ded690f8dd4f13e3 | |
parent | 7831ddb9117d38b8430461097af0712d6ac1ae03 (diff) | |
download | portage-2ab97ef0bc020f42508de4de62b4920931aaca20.tar.gz portage-2ab97ef0bc020f42508de4de62b4920931aaca20.tar.bz2 portage-2ab97ef0bc020f42508de4de62b4920931aaca20.zip |
Neglect EOFError during mtimedb loading since this error seems to be common when the mtimedb has been corrupted.
svn path=/main/trunk/; revision=3338
-rw-r--r-- | pym/portage.py | 2 |
1 files changed, 1 insertions, 1 deletions
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} # ======================================================================== |