summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-05-10 03:52:46 +0000
committerZac Medico <zmedico@gentoo.org>2006-05-10 03:52:46 +0000
commit2ab97ef0bc020f42508de4de62b4920931aaca20 (patch)
tree6ed42f503b3b7c73dd3e5ad9ded690f8dd4f13e3
parent7831ddb9117d38b8430461097af0712d6ac1ae03 (diff)
downloadportage-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.py2
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}
# ========================================================================