Show the path of the lockfile when chown fails. Thanks to Jeremy Olexa
authorZac Medico <zmedico@gentoo.org>
Fri, 29 Jan 2010 18:02:28 +0000 (18:02 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 29 Jan 2010 18:02:28 +0000 (18:02 -0000)
<darkside@g.o> for reporting.

svn path=/main/trunk/; revision=15220

pym/portage/locks.py

index cdbbf03c3b87418bbc7488098002372e483e5b1d..f024fe5420b0f93b1b6c5db6d81c370aace476fd 100644 (file)
@@ -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)