From c1f5f7364a006d8abb94b65eae302c1025e5782d Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 27 May 2006 00:59:31 +0000 Subject: [PATCH] Only print a warning if absolutely necessary when adjusting distfiles permissions for bug #112612. svn path=/main/trunk/; revision=3421 --- pym/portage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pym/portage.py b/pym/portage.py index ff4ab9303..a6945e073 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -1929,7 +1929,8 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks", except portage_exception.FileNotFound: pass except portage_exception.PortageException, e: - writemsg("%s\n" % str(e), noiselevel=-1) + if not os.access(os.path.join(mysettings["DISTDIR"], myfile), os.R_OK): + writemsg("!!! Failed to adjust permissions: %s\n" % str(e), noiselevel=-1) except (OSError,IOError),e: # file does not exist writemsg(_("!!! %(file)s not found in %(dir)s\n") % {"file":myfile, "dir":mysettings["DISTDIR"]}) -- 2.26.2