public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] portage r13355 - main/trunk/pym/portage
@ 2009-04-18  4:53 Zac Medico (zmedico)
  0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2009-04-18  4:53 UTC (permalink / raw
  To: gentoo-commits

Author: zmedico
Date: 2009-04-18 04:53:26 +0000 (Sat, 18 Apr 2009)
New Revision: 13355

Modified:
   main/trunk/pym/portage/locks.py
Log:
Fix lockfile() docstring to correctly document the wantnewlockfile behavior.
Thanks to Arfrever for reporting.


Modified: main/trunk/pym/portage/locks.py
===================================================================
--- main/trunk/pym/portage/locks.py	2009-04-18 04:45:43 UTC (rev 13354)
+++ main/trunk/pym/portage/locks.py	2009-04-18 04:53:26 UTC (rev 13355)
@@ -28,8 +28,10 @@
 
 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:




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-04-18  4:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-18  4:53 [gentoo-commits] portage r13355 - main/trunk/pym/portage Zac Medico (zmedico)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox