From 95ef30c8662aac7a5909da89c240cc7740606c41 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 29 Jan 2010 18:53:15 +0000 Subject: Show the path of the lockfile when chown fails. Thanks to Jeremy Olexa for reporting. (trunk r15220) svn path=/main/branches/2.1.7/; revision=15269 --- pym/portage/locks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- cgit v1.2.3-1-g7c22