summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-01-29 18:02:28 +0000
committerZac Medico <zmedico@gentoo.org>2010-01-29 18:02:28 +0000
commitb329c58199167edbd65464bd8b4ca8da4bd9f6bf (patch)
treefee999cfbad8eb8645d0d49e523630a6fefe40d9
parentc76d0fc446a396a73db71bae073b3e8e9cf9cf50 (diff)
downloadportage-b329c58199167edbd65464bd8b4ca8da4bd9f6bf.tar.gz
portage-b329c58199167edbd65464bd8b4ca8da4bd9f6bf.tar.bz2
portage-b329c58199167edbd65464bd8b4ca8da4bd9f6bf.zip
Show the path of the lockfile when chown fails. Thanks to Jeremy Olexa
<darkside@g.o> for reporting. svn path=/main/trunk/; revision=15220
-rw-r--r--pym/portage/locks.py4
1 files 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)