From 9f31ffe2043cb38ab4d2df883432de1ea06b9e02 Mon Sep 17 00:00:00 2001 From: gitea-actions-bot Date: Thu, 23 Jul 2026 02:00:40 +0000 Subject: [PATCH] chore: synchronise get-docker.sh with upstream --- get-docker.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/get-docker.sh b/get-docker.sh index e9f3ffe..11ebc7c 100755 --- a/get-docker.sh +++ b/get-docker.sh @@ -99,7 +99,7 @@ set -e # Git commit from https://github.com/docker/docker-install when # the script was uploaded (Should only be modified by upload job): -SCRIPT_COMMIT_SHA="02cb80d6c7d24c85a458ae31d166a6c535c7a37a" +SCRIPT_COMMIT_SHA="5ce20f2eef3615d08fea941eda5a109e949e8ebf" # strip "v" prefix if present VERSION="${VERSION#v}" @@ -634,7 +634,11 @@ do_install() { if ! is_dry_run; then set -x fi - $sh_c "DEBIAN_FRONTEND=noninteractive apt-get -y -qq install $pkgs >/dev/null" + apt_flags="-y -qq" + if [ -n "$pkg_version" ]; then + apt_flags="$apt_flags --allow-downgrades" + fi + $sh_c "DEBIAN_FRONTEND=noninteractive apt-get $apt_flags install $pkgs >/dev/null" ) if [ "$NO_AUTOSTART" != "1" ]; then start_docker_daemon