From 9473f7ad04757a2a1a9e59716b2c1420063de185 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 29 Sep 2019 23:56:25 +0100 Subject: [PATCH] Installed size does not really work, revert.. --- repo/generate-repo-page.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repo/generate-repo-page.sh b/repo/generate-repo-page.sh index 208f67c..92fc2ae 100755 --- a/repo/generate-repo-page.sh +++ b/repo/generate-repo-page.sh @@ -78,7 +78,7 @@ for PACKAGE in ${PACKAGES[@]}; do PACKAGE_DATA=$(has_data_package "${PACKAGE}" && echo "${PACKAGE}-data" || echo) PACKAGE_DESCRIPTION=$(echo "${PACKAGE_DETAILS}" | awk 'sub("Description: ","")') PACKAGE_PROVIDES=$(echo "${PACKAGE_DETAILS}" | awk 'sub("Provides: ","")') - PACKAGE_SIZE=$(echo "${PACKAGE_DETAILS}" | awk 'sub("Installed-Size: ","")') + PACKAGE_SIZE=$(echo "${PACKAGE_DETAILS}" | grep -v "Installed-Size:" | awk 'sub("Size: ","")') PACKAGE_VERSION=$(echo "${PACKAGE_DETAILS}" | awk 'sub("Version: ","")' | cut -d ':' -f 2 | cut -d '-' -f 1) echo "
" @@ -118,7 +118,7 @@ for PACKAGE in ${PACKAGES[@]}; do else PACKAGE_DATA_DETAILS=$(cat Packages | tail -n +${PACKAGE_DATA_LINESTART}) fi - PACKAGE_DATA_SIZE=$(echo "${PACKAGE_DATA_DETAILS}" | awk 'sub("Installed-Size: ","")') + PACKAGE_DATA_SIZE=$(echo "${PACKAGE_DATA_DETAILS}" | grep -v "Installed-Size:" | awk 'sub("Size: ","")') if [ ${PACKAGE_DATA_SIZE} -gt 999999 ]; then echo "+ $((${PACKAGE_DATA_SIZE} / 1024 / 1024))Mb (data)" else