Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r15269 - main/branches/2.1.7/pym/portage
Date: Fri, 29 Jan 2010 18:53:22
Message-Id: E1Navxz-0007rY-Ij@stork.gentoo.org
1 Author: zmedico
2 Date: 2010-01-29 18:53:15 +0000 (Fri, 29 Jan 2010)
3 New Revision: 15269
4
5 Modified:
6 main/branches/2.1.7/pym/portage/locks.py
7 Log:
8 Show the path of the lockfile when chown fails. Thanks to Jeremy Olexa
9 <darkside@g.o> for reporting. (trunk r15220)
10
11 Modified: main/branches/2.1.7/pym/portage/locks.py
12 ===================================================================
13 --- main/branches/2.1.7/pym/portage/locks.py 2010-01-29 18:52:52 UTC (rev 15268)
14 +++ main/branches/2.1.7/pym/portage/locks.py 2010-01-29 18:53:15 UTC (rev 15269)
15 @@ -89,8 +89,8 @@
16 unlinkfile=unlinkfile, waiting_msg=waiting_msg,
17 flags=flags)
18 else:
19 - writemsg(_("Cannot chown a lockfile. This could "
20 - "cause inconvenience later.\n"))
21 + writemsg(_("Cannot chown a lockfile: '%s'\n") % \
22 + lockfilename, noiselevel=-1)
23
24 finally:
25 os.umask(old_mask)