mirror of
https://github.com/opentx/opentx.git
synced 2025-07-23 16:25:16 +03:00
parent
90e58e4a5f
commit
ab4b159d06
4 changed files with 40 additions and 13 deletions
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
from __future__ import print_function
|
||||
import os
|
||||
import sys
|
||||
import subprocess
|
||||
|
@ -205,7 +206,7 @@ def build_firmware(path):
|
|||
file(outpath, "a").write("\n".join(cmd) + output + error)
|
||||
else:
|
||||
file(errpath, "w").write(output + error)
|
||||
print filename
|
||||
print(filename)
|
||||
exit(COMPILATION_ERROR)
|
||||
|
||||
# Launch make
|
||||
|
@ -216,7 +217,7 @@ def build_firmware(path):
|
|||
file(outpath, "a").write(output + error)
|
||||
else:
|
||||
file(errpath, "w").write(output + error)
|
||||
print filename
|
||||
print(filename)
|
||||
exit(COMPILATION_ERROR)
|
||||
|
||||
if what == "firmware":
|
||||
|
@ -233,11 +234,11 @@ def build_firmware(path):
|
|||
shutil.move(target, path)
|
||||
|
||||
if os.path.isfile(errpath):
|
||||
print filename
|
||||
print(filename)
|
||||
exit(COMPILATION_ERROR)
|
||||
|
||||
if os.path.isfile(path):
|
||||
print filename
|
||||
print(filename)
|
||||
exit(0)
|
||||
|
||||
lockpath = path + ".lock"
|
||||
|
@ -247,8 +248,8 @@ try:
|
|||
if not os.path.isfile(path):
|
||||
build_firmware(path)
|
||||
except filelock.Timeout:
|
||||
print filename
|
||||
print(filename)
|
||||
exit(COMPILATION_ERROR)
|
||||
|
||||
print filename
|
||||
print(filename)
|
||||
exit(0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue