summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-01-29 18:53:15 +0000
committerZac Medico <zmedico@gentoo.org>2010-01-29 18:53:15 +0000
commit95ef30c8662aac7a5909da89c240cc7740606c41 (patch)
tree17ea5a6e9dd49c4f09f6748c4666e5a1f338d9a2
parent45d8311e76f207dc1c4bb0ebd0cc2df2ab9f52cb (diff)
downloadportage-95ef30c8662aac7a5909da89c240cc7740606c41.tar.gz
portage-95ef30c8662aac7a5909da89c240cc7740606c41.tar.bz2
portage-95ef30c8662aac7a5909da89c240cc7740606c41.zip
Show the path of the lockfile when chown fails. Thanks to Jeremy Olexa
<darkside@g.o> for reporting. (trunk r15220) svn path=/main/branches/2.1.7/; revision=15269
-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)