From ce44ea3e914098a52bc0d1d995e71661659e77ca Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 8 Dec 2006 01:15:06 +0000 Subject: Make all lock files hidden for bug #142369. svn path=/main/trunk/; revision=5214 --- pym/portage_locks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pym') diff --git a/pym/portage_locks.py b/pym/portage_locks.py index 162cd8fd2..e2772956f 100644 --- a/pym/portage_locks.py +++ b/pym/portage_locks.py @@ -40,7 +40,9 @@ def lockfile(mypath,wantnewlockfile=0,unlinkfile=0): wantnewlockfile = 0 unlinkfile = 0 elif wantnewlockfile: - lockfilename = mypath+".portage_lockfile" + base, tail = os.path.split(mypath) + lockfilename = os.path.join(base, "." + tail + ".portage_lockfile") + del base, tail unlinkfile = 1 else: lockfilename = mypath -- cgit v1.2.3-1-g7c22