From b0ed3c842d8dc882660fc4611c0fd9f79854721e Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 9 Apr 2010 12:57:27 -0700 Subject: Handle IOError when trying to cache the Packages file from the binhost. --- pym/portage/dbapi/bintree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-1-g7c22