From b329c58199167edbd65464bd8b4ca8da4bd9f6bf Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 29 Jan 2010 18:02:28 +0000 Subject: [PATCH] Show the path of the lockfile when chown fails. Thanks to Jeremy Olexa for reporting. svn path=/main/trunk/; revision=15220 --- 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) -- 2.26.2