From cc966aac6d0e540bed29d75a71affbe63a9ab123 Mon Sep 17 00:00:00 2001 From: Wetitpig Date: Mon, 25 Feb 2019 10:39:27 +0800 Subject: [PATCH] Avoid no subpackage error --- build-package.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build-package.sh b/build-package.sh index ca9cb5d74..c2516b44e 100755 --- a/build-package.sh +++ b/build-package.sh @@ -572,6 +572,7 @@ termux_step_start_build() { _PKG_BUILD_DEPENDS=${TERMUX_PKG_BUILD_DEPENDS// /} # Also download subpackages dependencies (except the mother package): for SUBPKG in packages/$TERMUX_PKG_NAME/*.subpackage.sh; do + test -e $SUBPKG || continue _SUBPKG_DEPENDS+=" $(. $SUBPKG; echo $TERMUX_SUBPKG_DEPENDS | sed s%$TERMUX_PKG_NAME%%g)" done for PKG in $(echo ${_PKG_DEPENDS//,/ } ${_SUBPKG_DEPENDS//,/ } ${_PKG_BUILD_DEPENDS//,/ } | tr ' ' '\n' | sort -u); do