mirror of
https://github.com/opentx/opentx.git
synced 2025-07-13 11:29:51 +03:00
Earlier is better
This commit is contained in:
parent
361b2b707f
commit
89bfd6dcf4
1 changed files with 4 additions and 3 deletions
|
@ -233,15 +233,16 @@ if os.path.isfile(errpath):
|
||||||
print filename
|
print filename
|
||||||
exit(COMPILATION_ERROR)
|
exit(COMPILATION_ERROR)
|
||||||
|
|
||||||
|
if os.path.isfile(path):
|
||||||
|
print filename
|
||||||
|
exit(0)
|
||||||
|
|
||||||
lockpath = path + ".lock"
|
lockpath = path + ".lock"
|
||||||
lock = filelock.FileLock(lockpath)
|
lock = filelock.FileLock(lockpath)
|
||||||
try:
|
try:
|
||||||
with lock.acquire(timeout = 60*60):
|
with lock.acquire(timeout = 60*60):
|
||||||
if not os.path.isfile(path):
|
if not os.path.isfile(path):
|
||||||
build_firmware(path)
|
build_firmware(path)
|
||||||
else:
|
|
||||||
print filename
|
|
||||||
exit(0)
|
|
||||||
except filelock.Timeout:
|
except filelock.Timeout:
|
||||||
print filename
|
print filename
|
||||||
exit(COMPILATION_ERROR)
|
exit(COMPILATION_ERROR)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue