summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-04-09 12:28:09 -0700
committerZac Medico <zmedico@gentoo.org>2010-04-09 12:28:09 -0700
commit58041571ac0c6931e9e4e9dcb5b48be49bcccfe2 (patch)
tree2d2f87c20c0e9ff0ae6d9001bf9f7c08a3851f66 /pym
parente74fe3dead966f61b8ee1b0c5774dbfe6ba55ef0 (diff)
downloadportage-58041571ac0c6931e9e4e9dcb5b48be49bcccfe2.tar.gz
portage-58041571ac0c6931e9e4e9dcb5b48be49bcccfe2.tar.bz2
portage-58041571ac0c6931e9e4e9dcb5b48be49bcccfe2.zip
When caching Packages file from binhost, ignore failure to write in cases
when the cache directory is not writable.
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/dbapi/bintree.py3
1 files changed, 1 insertions, 2 deletions
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.