Merge pull request #570 from thaJeztah/allow_downgrades

deb: set "--allow-downgrades" if a specific version is requested
This commit is contained in:
Paweł Gronowski authored and GitHub committed 2026-07-20 18:36:11 +02:00
commit 5ce20f2eef
1 file changed
+5 -1
+5 -1
View File
@@ -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