buildsystem: allow onexit trap to be selectively ignored

This commit is contained in:
MilhouseVH 2020-02-19 10:24:15 +00:00
parent 4b013feb9a
commit 653298b18a
3 changed files with 5 additions and 1 deletions

View File

@ -28,7 +28,7 @@ onexitcleanup() {
fi
fi
}
trap "onexitcleanup $0 $@" EXIT
[ "${NOONEXIT}" != "yes" ] && trap "onexitcleanup $0 $@" EXIT
# return 0 if $2 in space-separated list $1, otherwise return 1
listcontains() {

View File

@ -3,6 +3,8 @@
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
export NOONEXIT=yes
cd "$(readlink -f "$(dirname "$0")")/.."
export _CACHE_PACKAGE_LOCAL=none _CACHE_PACKAGE_GLOBAL=none _DEBUG_DEPENDS_LIST=none DEFAULT_PYTHON_VERSION=none

View File

@ -5,6 +5,8 @@
set -e
export NOONEXIT=yes
[ -z "${DEBUG_LOG}" ] && DEBUG_LOG=/tmp/distro-tool.log
LIBREELEC_DIR=$HOME/LibreELEC.tv