build-packages.sh: loop definition fix (#19247)

This commit is contained in:
Ivan Max 2024-02-15 06:30:06 +00:00 committed by GitHub
parent 26e7ac34d3
commit 173fbf73b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -619,8 +619,8 @@ for ((i=0; i<${#PACKAGE_LIST[@]}; i++)); do
termux_step_start_build
if ! termux_check_package_in_building_packages_list "$TERMUX_PKG_NAME"; then
echo "$TERMUX_PKG_NAME" >> $TERMUX_BUILD_PACKAGE_CALL_BUILDING_PACKAGES_LIST_FILE_PATH
if ! termux_check_package_in_building_packages_list "${TERMUX_PKG_BUILDER_DIR#${TERMUX_SCRIPTDIR}/}"; then
echo "${TERMUX_PKG_BUILDER_DIR#${TERMUX_SCRIPTDIR}/}" >> $TERMUX_BUILD_PACKAGE_CALL_BUILDING_PACKAGES_LIST_FILE_PATH
fi
if [ "$TERMUX_CONTINUE_BUILD" == "false" ]; then

View File

@ -11,7 +11,7 @@ termux_step_get_dependencies() {
while read PKG PKG_DIR; do
# Checking for duplicate dependencies
local cyclic_dependence=false
if termux_check_package_in_building_packages_list "$PKG"; then
if termux_check_package_in_building_packages_list "$PKG_DIR"; then
echo "A circular dependency was found on '$PKG', the old version of the package will be installed to resolve the conflict"
cyclic_dependence=true
if [ "$TERMUX_INSTALL_DEPS" = false ]; then