mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
fixing missing backup files for config.cpp and $pboprefix$ in $NOBIN$ situations
#1682
This commit is contained in:
@ -1079,16 +1079,16 @@ See the make.cfg file for additional build options.
|
|||||||
if build_tool == "pboproject":
|
if build_tool == "pboproject":
|
||||||
try:
|
try:
|
||||||
nobinFilePath = os.path.join(work_drive, prefix, module, "$NOBIN$")
|
nobinFilePath = os.path.join(work_drive, prefix, module, "$NOBIN$")
|
||||||
|
backup_config(module)
|
||||||
|
|
||||||
if (not os.path.isfile(nobinFilePath)):
|
if (not os.path.isfile(nobinFilePath)):
|
||||||
backup_config(module)
|
|
||||||
convert_config(module)
|
convert_config(module)
|
||||||
|
|
||||||
version_stamp_pboprefix(module,commit_id)
|
version_stamp_pboprefix(module,commit_id)
|
||||||
|
|
||||||
if os.path.isfile(nobinFilePath):
|
if os.path.isfile(nobinFilePath):
|
||||||
print_green("$NOBIN$ Found. Proceeding with non-binarizing!")
|
print_green("$NOBIN$ Found. Proceeding with non-binarizing!")
|
||||||
cmd = [makepboTool, "-P","-A","-L","-N","-G", os.path.join(work_drive, prefix, module),os.path.join(module_root, release_dir, project,"addons")]
|
cmd = [makepboTool, "-P","-A","-L","-G","-X=*.backup", os.path.join(work_drive, prefix, module),os.path.join(module_root, release_dir, project,"addons")]
|
||||||
|
|
||||||
else:
|
else:
|
||||||
if check_external:
|
if check_external:
|
||||||
@ -1222,7 +1222,7 @@ See the make.cfg file for additional build options.
|
|||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print_yellow("Cancel or some error detected: {}".format(e))
|
print_yellow("Cancel or some error detected: {}".format(e))
|
||||||
|
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
copy_important_files(module_root_parent,os.path.join(release_dir, project))
|
copy_important_files(module_root_parent,os.path.join(release_dir, project))
|
||||||
|
Reference in New Issue
Block a user