summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-04-25 03:48:04 +0000
committerZac Medico <zmedico@gentoo.org>2006-04-25 03:48:04 +0000
commitd37897fe05e1deb835ca21ce3f0f3c044ae403c6 (patch)
tree49866ffe05b2247e1d97c581cf6ee34fa0438ccb
parent16036759ddb02a6ad56afaedbce90f5548346c01 (diff)
downloadportage-d37897fe05e1deb835ca21ce3f0f3c044ae403c6.tar.gz
portage-d37897fe05e1deb835ca21ce3f0f3c044ae403c6.tar.bz2
portage-d37897fe05e1deb835ca21ce3f0f3c044ae403c6.zip
Catch IOError when loading the mtimedb.
svn path=/main/trunk/; revision=3222
-rw-r--r--pym/portage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 1dc1a999c..b957b2071 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -6837,7 +6837,7 @@ try:
mtimedb = load_mtimedb(f)
f.close()
del f
-except OSError:
+except (IOError, OSError):
mtimedb = {"updates":{}, "version":"", "starttime":0}
features=settings["FEATURES"].split()