summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-04-30 07:16:56 +0000
committerZac Medico <zmedico@gentoo.org>2009-04-30 07:16:56 +0000
commit3f344a70aab6e19e92f6a60e3cc004cada0125b3 (patch)
treed941e99681e550d94b78076ad2f79142eeca365a
parentSimplify pkgcmp(). Thanks to Douglas Anderson <dja@gendja.com> for this patch (diff)
downloadportage-multirepo-3f344a70aab6e19e92f6a60e3cc004cada0125b3.tar.gz
portage-multirepo-3f344a70aab6e19e92f6a60e3cc004cada0125b3.tar.bz2
portage-multirepo-3f344a70aab6e19e92f6a60e3cc004cada0125b3.zip
Fix lockfile() docstring to correctly document the wantnewlockfile behavior.
Thanks to Arfrever for reporting. (trunk r13355) svn path=/main/branches/2.1.6/; revision=13511
-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 05a65644..c256a5ad 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: