From: Zac Medico Date: Fri, 9 Apr 2010 19:28:09 +0000 (-0700) Subject: When caching Packages file from binhost, ignore failure to write in cases X-Git-Tag: v2.2_rc68~661 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=58041571ac0c6931e9e4e9dcb5b48be49bcccfe2;p=portage.git When caching Packages file from binhost, ignore failure to write in cases when the cache directory is not writable. --- diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py index 997d629a8..7e05f0869 100644 --- a/pym/portage/dbapi/bintree.py +++ b/pym/portage/dbapi/bintree.py @@ -775,8 +775,7 @@ class binarytree(object): pkgindex.write(f) f.close() except PortageException: - if os.access(os.path.join( - self.settings["ROOT"], CACHE_PATH), os.W_OK): + if os.access(os.path.dirname(pkgindex_file), os.W_OK): raise # The current user doesn't have permission to cache the # file, but that's alright.