From: Zac Medico Date: Fri, 29 Jan 2010 18:02:28 +0000 (-0000) Subject: Show the path of the lockfile when chown fails. Thanks to Jeremy Olexa X-Git-Tag: v2.2_rc62~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b329c58199167edbd65464bd8b4ca8da4bd9f6bf;p=portage.git Show the path of the lockfile when chown fails. Thanks to Jeremy Olexa for reporting. svn path=/main/trunk/; revision=15220 --- diff --git a/pym/portage/locks.py b/pym/portage/locks.py index cdbbf03c3..f024fe542 100644 --- a/pym/portage/locks.py +++ b/pym/portage/locks.py @@ -89,8 +89,8 @@ def lockfile(mypath, wantnewlockfile=0, unlinkfile=0, unlinkfile=unlinkfile, waiting_msg=waiting_msg, flags=flags) else: - writemsg(_("Cannot chown a lockfile. This could " - "cause inconvenience later.\n")) + writemsg(_("Cannot chown a lockfile: '%s'\n") % \ + lockfilename, noiselevel=-1) finally: os.umask(old_mask)