summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-06-19 21:37:02 +0000
committerZac Medico <zmedico@gentoo.org>2007-06-19 21:37:02 +0000
commit6575452cbc87ab6e0238fe5be684c838a2bdfb92 (patch)
treefbcc8d521d2af723e2b0f54aa7c3142a9b315924
parent17403950a6b219af6b919c79998b38172062f93d (diff)
downloadportage-6575452cbc87ab6e0238fe5be684c838a2bdfb92.tar.gz
portage-6575452cbc87ab6e0238fe5be684c838a2bdfb92.tar.bz2
portage-6575452cbc87ab6e0238fe5be684c838a2bdfb92.zip
For bug #143340, give an appropriate message when there is no read access to a binary package.
svn path=/main/trunk/; revision=6877
-rw-r--r--pym/portage/dbapi/bintree.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py
index 7fb58748f..713a8c612 100644
--- a/pym/portage/dbapi/bintree.py
+++ b/pym/portage/dbapi/bintree.py
@@ -429,6 +429,12 @@ class binarytree(object):
aux_cache[k] = d[k]
self.dbapi._aux_cache[mycpv] = aux_cache
continue
+ if not os.access(full_path, os.R_OK):
+ writemsg("!!! Permission denied to read " + \
+ "binary package: '%s'\n" % full_path,
+ noiselevel=-1)
+ self.invalids.append(myfile[:-5])
+ continue
mytbz2 = portage.xpak.tbz2(full_path)
# For invalid packages, mycat could be None.
mycat = mytbz2.getfile("CATEGORY")