Browse Source

Adjust repo pages to work with new focal based packages

Signed-off-by: falkTX <falktx@falktx.com>
pull/19/merge
falkTX 2 years ago
parent
commit
8064bd4e96
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 10 additions and 1 deletions
  1. +10
    -1
      repo/generate-repo-page.sh

+ 10
- 1
repo/generate-repo-page.sh View File

@@ -23,8 +23,14 @@ mkdir -p pool-cache


wget -q http://ppa.launchpad.net/kxstudio-debian/${REPO_TARGET}/ubuntu/dists/bionic/main/binary-amd64/Packages.gz wget -q http://ppa.launchpad.net/kxstudio-debian/${REPO_TARGET}/ubuntu/dists/bionic/main/binary-amd64/Packages.gz
gzip -d Packages.gz gzip -d Packages.gz
mv Packages Packages.bionic


PACKAGES=$(cat Packages | grep "Package: " | sed "s/Package: //g" | sort)
wget -q http://ppa.launchpad.net/kxstudio-debian/${REPO_TARGET}/ubuntu/dists/focal/main/binary-amd64/Packages.gz
gzip -d Packages.gz
mv Packages Packages.focal

cat Packages.bionic Packages.focal > Packages
PACKAGES=$(cat Packages | grep "Package: " | sed "s/Package: //g" | sort | uniq)


function is_blacklisted() { function is_blacklisted() {
local TEST="${1}" local TEST="${1}"
@@ -254,6 +260,9 @@ for PACKAGE in ${PACKAGES[@]}; do


else else
for ARCH in ${PACKAGES_ARCHS[@]}; do for ARCH in ${PACKAGES_ARCHS[@]}; do
if [ "${ARCH}" = "i386" ] && (cat Packages.focal | grep -q "Package: ${PACKAGE}"); then
continue
fi
PACKAGE_BASENAME_ARCHED=$(echo "${PACKAGE_BASENAME}" | sed "s/_amd64.deb/_${ARCH}.deb/g") PACKAGE_BASENAME_ARCHED=$(echo "${PACKAGE_BASENAME}" | sed "s/_amd64.deb/_${ARCH}.deb/g")
echo "<a href=\"${PACKAGES_BASE_HTTPS}${PACKAGE_BASENAME_ARCHED}\" target=\"_blank\">${ARCH}</a>&nbsp;&nbsp;" echo "<a href=\"${PACKAGES_BASE_HTTPS}${PACKAGE_BASENAME_ARCHED}\" target=\"_blank\">${ARCH}</a>&nbsp;&nbsp;"
done done


Loading…
Cancel
Save