From bd85a8fadbaafcbda02a8381212f26b7d9067b22 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 30 Jul 2007 04:23:08 +0000 Subject: For bug #143340, give an appropriate message when there is no read access to a binary package. (branches/2.1.2 r6878) svn path=/main/branches/2.1.2.9/; revision=7467 --- pym/portage.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pym') diff --git a/pym/portage.py b/pym/portage.py index 5bc2f22d8..0b6e3195e 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -6619,6 +6619,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") -- cgit v1.2.3-1-g7c22