summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-04-09 12:57:27 -0700
committerZac Medico <zmedico@gentoo.org>2010-04-09 12:57:27 -0700
commitb0ed3c842d8dc882660fc4611c0fd9f79854721e (patch)
tree163782554f26c6314a864a7d1e97f730b1c739d3
parent58041571ac0c6931e9e4e9dcb5b48be49bcccfe2 (diff)
downloadportage-b0ed3c842d8dc882660fc4611c0fd9f79854721e.tar.gz
portage-b0ed3c842d8dc882660fc4611c0fd9f79854721e.tar.bz2
portage-b0ed3c842d8dc882660fc4611c0fd9f79854721e.zip
Handle IOError when trying to cache the Packages file from the binhost.
-rw-r--r--pym/portage/dbapi/bintree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py
index 7e05f0869..caa17699f 100644
--- a/pym/portage/dbapi/bintree.py
+++ b/pym/portage/dbapi/bintree.py
@@ -774,7 +774,7 @@ class binarytree(object):
f = atomic_ofstream(pkgindex_file)
pkgindex.write(f)
f.close()
- except PortageException:
+ except (IOError, PortageException):
if os.access(os.path.dirname(pkgindex_file), os.W_OK):
raise
# The current user doesn't have permission to cache the