chiark / gitweb /
Use termux_error_exit
authorFredrik Fornwall <fredrik@fornwall.net>
Sun, 9 Apr 2017 13:10:01 +0000 (15:10 +0200)
committerFredrik Fornwall <fredrik@fornwall.net>
Sun, 9 Apr 2017 13:10:01 +0000 (15:10 +0200)
disabled-packages/nodejs-current/build.sh
packages/nodejs/build.sh
packages/python2/build.sh

index 618ab452d063a012d08c0db7c91e89f082d63b11..0923e73ab22312fd1f53bb41999f776505924562 100644 (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"
index 98baea4c62f36db13ebf92ec7b61ac68c0d0709f..7b5fb4af993cf3e03ec1da7939bd3bdc5a416cf3 100644 (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.
index 5304a0393aa9ede1b61e87b10c2cd304d9636538..3e9df76d2469438d8a168addf88d0a6a2e3f2e3a 100644 (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
 }