Commit 4d6be513 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

BF: need filename

parent 8d96d996
...@@ -17,7 +17,7 @@ import contextlib as ctxlib ...@@ -17,7 +17,7 @@ import contextlib as ctxlib
import subprocess as sp import subprocess as sp
__version__ = '0.1.1' __version__ = '0.1.2'
"""Current version of the fsl-ci-rules.""" """Current version of the fsl-ci-rules."""
...@@ -96,7 +96,7 @@ def lockdir(dirname): ...@@ -96,7 +96,7 @@ def lockdir(dirname):
while True: while True:
try: try:
fprint(f'Attempting to lock {dirname} for exclusive access.') fprint(f'Attempting to lock {dirname} for exclusive access.')
fd = os.open(os.O_CREAT | os.O_EXCL | os.O_RDWR) fd = os.open(lockfile, os.O_CREAT | os.O_EXCL | os.O_RDWR)
break break
except OSError as e: except OSError as e:
if e.errno != errno.EEXIST: if e.errno != errno.EEXIST:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment