From abd10a156da5c379aa8e17bfd7dde08371cd0d1e Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 19 Jun 2007 21:39:51 +0000 Subject: [PATCH] For bug #143340, give an appropriate message when there is no read access to a binary package. (trunk r6877) svn path=/main/branches/2.1.2/; revision=6878 --- pym/portage.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pym/portage.py b/pym/portage.py index bbbc6312b..7558a7b82 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -6587,6 +6587,12 @@ class binarytree(object): full_path = os.path.join(self.pkgdir, mypath) if os.path.islink(full_path): 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 = xpak.tbz2(full_path) # For invalid packages, mycat could be None. mycat = mytbz2.getfile("CATEGORY") -- 2.26.2