From: Zac Medico Date: Tue, 19 Jun 2007 21:39:51 +0000 (-0000) Subject: For bug #143340, give an appropriate message when there is no read access to a binary... X-Git-Tag: v2.1.3~207 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=abd10a156da5c379aa8e17bfd7dde08371cd0d1e;p=portage.git 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 --- 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")