armbian-next: chroot_sdcard_apt_get_install_dry_run(): run again if first try fails, with more logging

This commit is contained in:
Ricardo Pardini 2023-01-26 00:26:19 +01:00
parent 5d3ba1bade
commit 89d6c686c6
No known key found for this signature in database
GPG Key ID: 3D38CA12A66C5D02

View File

@ -17,7 +17,9 @@ function chroot_sdcard_apt_get_install_dry_run() {
if [[ "${SHOW_DEBUG}" != "yes" ]]; then
logging_filter="2>&1 | { grep --line-buffered -v -e '^Conf ' -e '^Inst ' || true; }"
fi
chroot_sdcard_apt_get --no-install-recommends --dry-run install "$@" "${logging_filter}"
# do it twice if it fails once; second time with more logging (default is "-qq")
chroot_sdcard_apt_get --no-install-recommends --dry-run install "$@" "${logging_filter}" ||
apt_logging="-q" chroot_sdcard_apt_get --no-install-recommends --dry-run install "$@" "${logging_filter}"
}
function chroot_sdcard_apt_get_update() {