From: Zac Medico Date: Sat, 27 May 2006 00:59:31 +0000 (-0000) Subject: Only print a warning if absolutely necessary when adjusting distfiles permissions... X-Git-Tag: v2.1~52 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c1f5f7364a006d8abb94b65eae302c1025e5782d;p=portage.git Only print a warning if absolutely necessary when adjusting distfiles permissions for bug #112612. svn path=/main/trunk/; revision=3421 --- 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"]})