summaryrefslogtreecommitdiff
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
parentWhen caching Packages file from binhost, ignore failure to write in cases (diff)
downloadportage-idfetch-b0ed3c842d8dc882660fc4611c0fd9f79854721e.tar.gz
portage-idfetch-b0ed3c842d8dc882660fc4611c0fd9f79854721e.tar.bz2
portage-idfetch-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 7e05f086..caa17699 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