From 6575452cbc87ab6e0238fe5be684c838a2bdfb92 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 19 Jun 2007 21:37:02 +0000 Subject: For bug #143340, give an appropriate message when there is no read access to a binary package. svn path=/main/trunk/; revision=6877 --- pym/portage/dbapi/bintree.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pym') 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") -- cgit v1.2.3-1-g7c22