forked from ungleich-public/cdist
Merge branch 'fix/__package_update_index/allow-releaseinfo-change' into 'master'
__package_update_index: fix complain about suite change See merge request ungleich-public/cdist!1021
This commit is contained in:
commit
67a6965e1d
1 changed files with 13 additions and 1 deletions
|
@ -41,7 +41,19 @@ fi
|
||||||
case "$type" in
|
case "$type" in
|
||||||
yum) ;;
|
yum) ;;
|
||||||
apt)
|
apt)
|
||||||
echo "apt-get --quiet update"
|
# There are special arguments to apt(8) to prevent aborts if apt woudn't been
|
||||||
|
# updated after the 19th April 2021 till the bullseye release. The additional
|
||||||
|
# arguments acknoledge the happend suite change (the apt(8) update does the
|
||||||
|
# same by itself).
|
||||||
|
#
|
||||||
|
# Using '-o $config' instead of the --allow-releaseinfo-change-* parameter
|
||||||
|
# allows backward compatablility to pre-buster Debian versions.
|
||||||
|
#
|
||||||
|
# See more: ticket #861
|
||||||
|
# https://code.ungleich.ch/ungleich-public/cdist/-/issues/861
|
||||||
|
apt_opts="-o Acquire::AllowReleaseInfoChange::Suite=true -o Acquire::AllowReleaseInfoChange::Version=true"
|
||||||
|
|
||||||
|
echo "apt-get --quiet $apt_opts update"
|
||||||
echo "apt-cache updated (age was: $currage)" >> "$__messages_out"
|
echo "apt-cache updated (age was: $currage)" >> "$__messages_out"
|
||||||
;;
|
;;
|
||||||
pacman)
|
pacman)
|
||||||
|
|
Loading…
Reference in a new issue