Use termux_error_exit

This commit is contained in:
Fredrik Fornwall 2017-04-09 15:10:01 +02:00
parent 4d3656a8d5
commit 7d055a16ba
3 changed files with 3 additions and 5 deletions

View File

@ -39,8 +39,7 @@ termux_step_configure () {
elif [ $TERMUX_ARCH = "x86_64" ]; then
DEST_CPU="x64"
else
echo "Unsupported arch: $TERMUX_ARCH"
exit 1
termux_error_exit "Unsupported arch '$TERMUX_ARCH'"
fi
export GYP_DEFINES="host_os=linux"

View File

@ -37,8 +37,7 @@ termux_step_configure () {
elif [ $TERMUX_ARCH = "x86_64" ]; then
DEST_CPU="x64"
else
echo "Unsupported arch: $TERMUX_ARCH"
exit 1
termux_error_exit "Unsupported arch '$TERMUX_ARCH'"
fi
# See note above TERMUX_PKG_DEPENDS why we do not use a shared libuv.

View File

@ -70,7 +70,7 @@ termux_step_post_massage () {
# Verify that desired modules have been included:
for module in _ssl bz2 zlib _curses _sqlite3; do
if [ ! -f lib/python${_MAJOR_VERSION}/lib-dynload/${module}.so ]; then
termux_error_exit "ERROR: Python module library $module not built"
termux_error_exit "Python module library $module not built"
fi
done
}