Handle IOError when trying to cache the Packages file from the binhost.
authorZac Medico <zmedico@gentoo.org>
Fri, 9 Apr 2010 19:57:27 +0000 (12:57 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 9 Apr 2010 19:57:27 +0000 (12:57 -0700)
pym/portage/dbapi/bintree.py

index 7e05f0869e6120581d611a32868a42f19f02e76d..caa17699f07994e97622f77d4b864dac8d109570 100644 (file)
@@ -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