From 8064bd4e963ddaefaa70bf36799e47006fde6c38 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 21 May 2022 23:31:27 +0100 Subject: [PATCH] Adjust repo pages to work with new focal based packages Signed-off-by: falkTX --- repo/generate-repo-page.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/repo/generate-repo-page.sh b/repo/generate-repo-page.sh index f94419c..d859422 100755 --- a/repo/generate-repo-page.sh +++ b/repo/generate-repo-page.sh @@ -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 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() { local TEST="${1}" @@ -254,6 +260,9 @@ for PACKAGE in ${PACKAGES[@]}; do else 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") echo "${ARCH}  " done