From 771584b410b367d8d0bded9814a29db5ea92308c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz=20=28arab=2C=20vx?= =?UTF-8?q?p=29?= Date: Fri, 3 Feb 2017 23:57:57 +0100 Subject: subr/pre_build_files.subr: refuse to build when ${BUILD_STATUS_IN_PROGRESS_FNAME} exists (fix.) --- subr/pre_build_files.subr | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'subr') diff --git a/subr/pre_build_files.subr b/subr/pre_build_files.subr index ea0e6b95..dc65759d 100644 --- a/subr/pre_build_files.subr +++ b/subr/pre_build_files.subr @@ -3,10 +3,14 @@ # pre_build_files() { + if [ -e ${BUILD_STATUS_IN_PROGRESS_FNAME} ]; then + log_msg failexit "Error: another build targeting this architecture and build type is currently in progress."; + else + touch ${BUILD_STATUS_IN_PROGRESS_FNAME}; + fi; if [ -e ${BUILD_LOG_FNAME} ]; then mv -- ${BUILD_LOG_FNAME} ${BUILD_LOG_LAST_FNAME}; fi; - touch ${BUILD_STATUS_IN_PROGRESS_FNAME}; BUILD_DATE_START="$(date %Y-%m-%d-%H-%M-%S)"; BUILD_NFINI=${BUILD_NSKIP:=${BUILD_NFAIL:=${BUILD_NBUILT:=0}}}; BUILD_TIMES_SECS=$(command date +%s); -- cgit v1.2.3