projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a273b78
)
Make all lock files hidden for bug #142369.
author
Zac Medico
<zmedico@gentoo.org>
Fri, 8 Dec 2006 01:15:06 +0000
(
01:15
-0000)
committer
Zac Medico
<zmedico@gentoo.org>
Fri, 8 Dec 2006 01:15:06 +0000
(
01:15
-0000)
svn path=/main/trunk/; revision=5214
pym/portage_locks.py
patch
|
blob
|
history
diff --git
a/pym/portage_locks.py
b/pym/portage_locks.py
index 162cd8fd2b36e4b4b4ea1c5fb459ed8aa857e6cb..e2772956f75ee830441e10b5b2fd5f606457a8cd 100644
(file)
--- 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