summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-04-18 04:53:26 +0000
committerZac Medico <zmedico@gentoo.org>2009-04-18 04:53:26 +0000
commitf5bef21caff571531f7fcae471daef9336aff92d (patch)
tree0fc566e2e03a68838b48e08b433c120d27a71ac7
parent556e8ffe4930ffc6cc02c0cd2d0d9d17b73b1d71 (diff)
downloadportage-f5bef21caff571531f7fcae471daef9336aff92d.tar.gz
portage-f5bef21caff571531f7fcae471daef9336aff92d.tar.bz2
portage-f5bef21caff571531f7fcae471daef9336aff92d.zip
Fix lockfile() docstring to correctly document the wantnewlockfile behavior.
Thanks to Arfrever for reporting. svn path=/main/trunk/; revision=13355
-rw-r--r--pym/portage/locks.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pym/portage/locks.py b/pym/portage/locks.py
index 05a65644f..c256a5ada 100644
--- a/pym/portage/locks.py
+++ b/pym/portage/locks.py
@@ -28,8 +28,10 @@ def unlockdir(mylock):
def lockfile(mypath, wantnewlockfile=0, unlinkfile=0,
waiting_msg=None, flags=0):
- """Creates all dirs upto, the given dir. Creates a lockfile
- for the given directory as the file: directoryname+'.portage_lockfile'."""
+ """
+ If wantnewlockfile is True then this creates a lockfile in the parent
+ directory as the file: '.' + basename + '.portage_lockfile'.
+ """
import fcntl
if not mypath: