From 58041571ac0c6931e9e4e9dcb5b48be49bcccfe2 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 9 Apr 2010 12:28:09 -0700 Subject: When caching Packages file from binhost, ignore failure to write in cases when the cache directory is not writable. --- pym/portage/dbapi/bintree.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pym') 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. -- cgit v1.2.3-1-g7c22