summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjingui.ren <jingui.ren@samsung.com>2019-04-02 15:57:13 +0800
committerjingui.ren <jingui.ren@samsung.com>2019-04-04 10:50:08 +0800
commitb74c255a97cd08b899b34fb44937d45ab6592ace (patch)
tree96ee77d058e1d72df94b3bc10ea9242bf8552591
parent7b538266c0d1db5e780b119b6e6811a59117618c (diff)
downloadbuild-b74c255a97cd08b899b34fb44937d45ab6592ace.tar.gz
build-b74c255a97cd08b899b34fb44937d45ab6592ace.tar.bz2
build-b74c255a97cd08b899b34fb44937d45ab6592ace.zip
Fix bugs when exit at installing packagesnanjing-devel
Change-Id: I06683642001182ea45a3b29366be62d80b5a6038
-rwxr-xr-xinit_buildsystem1
1 files changed, 1 insertions, 0 deletions
diff --git a/init_buildsystem b/init_buildsystem
index 43ac57a..0a4c0fb 100755
--- a/init_buildsystem
+++ b/init_buildsystem
@@ -162,6 +162,7 @@ cleanup_and_exit() {
umount -n "$BUILD_ROOT/proc" 2> /dev/null || true
umount -n "$BUILD_ROOT/dev/pts" 2> /dev/null || true
umount -n "$BUILD_ROOT/mnt" 2> /dev/null || true
+ rm -f $BUILD_IS_RUNNING 2> /dev/null || true
exit ${1:-0}
}