Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r13511 - main/branches/2.1.6/pym/portage
Date: Thu, 30 Apr 2009 07:16:58
Message-Id: E1LzQVs-0000Br-IP@stork.gentoo.org
1 Author: zmedico
2 Date: 2009-04-30 07:16:56 +0000 (Thu, 30 Apr 2009)
3 New Revision: 13511
4
5 Modified:
6 main/branches/2.1.6/pym/portage/locks.py
7 Log:
8 Fix lockfile() docstring to correctly document the wantnewlockfile behavior.
9 Thanks to Arfrever for reporting. (trunk r13355)
10
11 Modified: main/branches/2.1.6/pym/portage/locks.py
12 ===================================================================
13 --- main/branches/2.1.6/pym/portage/locks.py 2009-04-30 07:16:44 UTC (rev 13510)
14 +++ main/branches/2.1.6/pym/portage/locks.py 2009-04-30 07:16:56 UTC (rev 13511)
15 @@ -28,8 +28,10 @@
16
17 def lockfile(mypath, wantnewlockfile=0, unlinkfile=0,
18 waiting_msg=None, flags=0):
19 - """Creates all dirs upto, the given dir. Creates a lockfile
20 - for the given directory as the file: directoryname+'.portage_lockfile'."""
21 + """
22 + If wantnewlockfile is True then this creates a lockfile in the parent
23 + directory as the file: '.' + basename + '.portage_lockfile'.
24 + """
25 import fcntl
26
27 if not mypath: