summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-12-08 01:15:06 +0000
committerZac Medico <zmedico@gentoo.org>2006-12-08 01:15:06 +0000
commitce44ea3e914098a52bc0d1d995e71661659e77ca (patch)
tree98f5b9fa617254929f751f9ec034ae3e93358ab5
parenta273b7887f932e0dddc9e2d5065d9a4b6c1af00f (diff)
downloadportage-ce44ea3e914098a52bc0d1d995e71661659e77ca.tar.gz
portage-ce44ea3e914098a52bc0d1d995e71661659e77ca.tar.bz2
portage-ce44ea3e914098a52bc0d1d995e71661659e77ca.zip
Make all lock files hidden for bug #142369.
svn path=/main/trunk/; revision=5214
-rw-r--r--pym/portage_locks.py4
1 files changed, 3 insertions, 1 deletions
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