diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-07-30 04:23:08 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-07-30 04:23:08 +0000 |
commit | bd85a8fadbaafcbda02a8381212f26b7d9067b22 (patch) | |
tree | 7336c7ae6fbeae07b069c9c676de52a6f0373264 | |
parent | 9dcc3601f42ea7926d8cfa1cbcee9d5a4e945386 (diff) | |
download | portage-bd85a8fadbaafcbda02a8381212f26b7d9067b22.tar.gz portage-bd85a8fadbaafcbda02a8381212f26b7d9067b22.tar.bz2 portage-bd85a8fadbaafcbda02a8381212f26b7d9067b22.zip |
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
-rw-r--r-- | pym/portage.py | 6 |
1 files changed, 6 insertions, 0 deletions
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") |