summaryrefslogtreecommitdiffstats
path: root/web/update
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-26 08:57:54 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-26 08:57:54 +0000
commit94a20e922a94d4a240608558c8079ba1f04c27d1 (patch)
tree469ed3f201016f562c32d5450c66a6060aab2ca7 /web/update
parentUpdating. (diff)
downloadprogress-linux-tools-94a20e922a94d4a240608558c8079ba1f04c27d1.tar.xz
progress-linux-tools-94a20e922a94d4a240608558c8079ba1f04c27d1.zip
Updating.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'web/update')
-rwxr-xr-xweb/update26
1 files changed, 15 insertions, 11 deletions
diff --git a/web/update b/web/update
index 5eaaffe..e67906f 100755
--- a/web/update
+++ b/web/update
@@ -47,6 +47,7 @@ case "${MODE}" in
graograman)
UPSTREAM_DISTRIBUTIONS="bookworm bookworm-updates bookworm-proposed-updates"
DOWNSTREAM_DISTRIBUTION="graograman"
+ DOWNSTREAM_DISTRIBUTIONS="graograman graograman-security graograman-updates"
DOWNSTREAM_MIRROR="https://apt.progress-linux.org/packages"
DOWNSTREAM_TAG="progress"
;;
@@ -75,10 +76,10 @@ esac
UPSTREAM_SECTIONS="main contrib non-free"
UPSTREAM_MIRROR="http://debian.ethz.ch/debian"
+UPSTREAM_MIRROR_SECURITY="http://security.debian.org"
DOWNSTREAM_SECTIONS="main contrib non-free"
-#ARCHITECTURES="amd64 armel armhf arm64 i386 all source"
ARCHITECTURES="amd64 arm64 all source"
Download_downstream_indices ()
@@ -92,9 +93,12 @@ Download_downstream_indices ()
if [ ! -e "downstream.${MODE}.sources" ]
then
- for SECTION in ${DOWNSTREAM_SECTIONS}
+ for DISTRIBUTION in ${DOWNSTREAM_DISTRIBUTIONS}
do
- wget -q -O - "${DOWNSTREAM_MIRROR}/dists/${DOWNSTREAM_DISTRIBUTION}/${SECTION}/source/Sources.xz" | xz -d >> "downstream.${MODE}.sources"
+ for SECTION in ${DOWNSTREAM_SECTIONS}
+ do
+ wget -q -O - "${DOWNSTREAM_MIRROR}/dists/${DISTRIBUTION}/${SECTION}/source/Sources.xz" | xz -d >> "downstream.${MODE}.sources"
+ done
done
fi
}
@@ -125,7 +129,7 @@ Download_upstream_indices ()
;;
*)
- if wget -q -O /dev/null "http://security.debian.org/dists/${DISTRIBUTION}/updates/Release"
+ if wget -q -O /dev/null "${UPSTREAM_MIRROR_SECURITY}/dists/${DISTRIBUTION}/updates/Release"
then
for SECTION in ${UPSTREAM_SECTIONS}
do
@@ -135,13 +139,13 @@ Download_upstream_indices ()
case "${ARCHITECTURE}" in
source)
- wget -q -O - "http://security.debian.org/dists/${DISTRIBUTION}/updates/${SECTION}/${ARCHITECTURE}/Sources.xz" | xz -d >> "upstream.${MODE}.sources"
+ wget -q -O - "${UPSTREAM_MIRROR_SECURITY}/dists/${DISTRIBUTION}/updates/${SECTION}/${ARCHITECTURE}/Sources.xz" | xz -d >> "upstream.${MODE}.sources"
;;
*)
- if wget -q -O /dev/null "http://security.debian.org/dists/${DISTRIBUTION}/updates/${SECTION}/binary-${ARCHITECTURE}/Packages.xz"
+ if wget -q -O /dev/null "${UPSTREAM_MIRROR_SECURITY}/dists/${DISTRIBUTION}/updates/${SECTION}/binary-${ARCHITECTURE}/Packages.xz"
then
- wget -q -O - "http://security.debian.org/dists/${DISTRIBUTION}/updates/${SECTION}/binary-${ARCHITECTURE}/Packages.xz" | xz -d >> "upstream.${MODE}.binaries"
+ wget -q -O - "${UPSTREAM_MIRROR_SECURITY}/dists/${DISTRIBUTION}/updates/${SECTION}/binary-${ARCHITECTURE}/Packages.xz" | xz -d >> "upstream.${MODE}.binaries"
fi
;;
esac
@@ -149,7 +153,7 @@ Download_upstream_indices ()
done
fi
- if wget -q -O /dev/null "http://security.debian.org/dists/${DISTRIBUTION}-security/Release"
+ if wget -q -O /dev/null "${UPSTREAM_MIRROR_SECURITY}/dists/${DISTRIBUTION}-security/Release"
then
for SECTION in ${UPSTREAM_SECTIONS}
do
@@ -159,11 +163,11 @@ Download_upstream_indices ()
case "${ARCHITECTURE}" in
source)
- wget -q -O - "http://security.debian.org/dists/${DISTRIBUTION}-security/${SECTION}/${ARCHITECTURE}/Sources.xz" | xz -d >> "upstream.${MODE}.sources"
+ wget -q -O - "${UPSTREAM_MIRROR_SECURITY}/dists/${DISTRIBUTION}-security/${SECTION}/${ARCHITECTURE}/Sources.xz" | xz -d >> "upstream.${MODE}.sources"
;;
*)
- wget -q -O - "http://security.debian.org/dists/${DISTRIBUTION}-security/${SECTION}/binary-${ARCHITECTURE}/Packages.xz" | xz -d >> "upstream.${MODE}.binaries"
+ wget -q -O - "${UPSTREAM_MIRROR_SECURITY}/dists/${DISTRIBUTION}-security/${SECTION}/binary-${ARCHITECTURE}/Packages.xz" | xz -d >> "upstream.${MODE}.binaries"
;;
esac
done
@@ -209,7 +213,7 @@ echo -n "Comparing versions... "
for PACKAGE in ${DOWNSTREAM_PACKAGES}
do
- DOWNSTREAM_VERSION="$(sed -n "/^Package: ${PACKAGE}$/,/^Version:/p" downstream.${MODE}.sources | awk '/^Version: / { print $2 }')"
+ DOWNSTREAM_VERSION="$(sed -n "/^Package: ${PACKAGE}$/,/^Version:/p" downstream.${MODE}.sources | awk '/^Version: / { print $2 }' | sort -rV | head -n1)"
case "${MODE}" in
*-backports)