make_mirror.sh: retry apt with verbose output

This commit is contained in:
Johannes Schauer Marin Rodrigues 2024-03-23 22:38:30 +01:00
parent 1cf0d87a60
commit cdf6959a41
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -236,7 +236,11 @@ END
esac
# shellcheck disable=SC2086
APT_CONFIG="$rootdir/etc/apt/apt.conf" apt-get --yes install $pkgs
APT_CONFIG="$rootdir/etc/apt/apt.conf" apt-get --yes install $pkgs \
|| APT_CONFIG="$rootdir/etc/apt/apt.conf" apt-get --yes install \
-oDebug::pkgProblemResolver=true -oDebug::pkgDepCache::Marker=1 \
-oDebug::pkgDepCache::AutoInstall=1 \
$pkgs
rm "$rootdir/var/cache/apt/archives/lock"
rmdir "$rootdir/var/cache/apt/archives/partial"