From: Zac Medico Date: Fri, 9 Apr 2010 19:57:27 +0000 (-0700) Subject: Handle IOError when trying to cache the Packages file from the binhost. X-Git-Tag: v2.2_rc68~660 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=b0ed3c842d8dc882660fc4611c0fd9f79854721e;p=portage.git Handle IOError when trying to cache the Packages file from the binhost. --- 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