From cdf597f4b14c6b79864dc9f18ccc32912a3ca154 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Fri, 22 Jun 2018 23:34:51 +0200 Subject: [PATCH] Update repology metadata generation Fix empty dx version and write out empty depends array. --- scripts/generate-repology-metadata.sh | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/scripts/generate-repology-metadata.sh b/scripts/generate-repology-metadata.sh index 7ada16790..6d265d45a 100755 --- a/scripts/generate-repology-metadata.sh +++ b/scripts/generate-repology-metadata.sh @@ -13,19 +13,17 @@ check_package() { # path echo " \"description\": \"$DESC\"," echo " \"homepage\": \"$TERMUX_PKG_HOMEPAGE\"," - if [ "$TERMUX_PKG_DEPENDS" != "" ]; then - echo -n " \"depends\": [" - FIRST_DEP=yes - for p in ${TERMUX_PKG_DEPENDS//,/ }; do - if [ $FIRST_DEP = yes ]; then - FIRST_DEP=no - else - echo -n ", " - fi - echo -n "\"$p\"" - done - echo "]," - fi + echo -n " \"depends\": [" + FIRST_DEP=yes + for p in ${TERMUX_PKG_DEPENDS//,/ }; do + if [ $FIRST_DEP = yes ]; then + FIRST_DEP=no + else + echo -n ", " + fi + echo -n "\"$p\"" + done + echo "]," if [ "$TERMUX_PKG_SRCURL" != "" ]; then echo " \"srcurl\": \"$TERMUX_PKG_SRCURL\"," @@ -37,6 +35,7 @@ check_package() { # path export TERMUX_ARCH=aarch64 export TERMUX_NDK_VERSION=17 +TERMUX_ANDROID_BUILD_TOOLS_VERSION=27.0.3 echo '['