Browse Source

Installed size does not really work, revert..

pull/14/head
falkTX 5 years ago
parent
commit
9473f7ad04
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      repo/generate-repo-page.sh

+ 2
- 2
repo/generate-repo-page.sh View File

@@ -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 "<div class=\"repository-package\">"
@@ -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


Loading…
Cancel
Save