|
|
@ -70,7 +70,31 @@ apt:update() { |
|
|
|
/etc/apt/sources.list |
|
|
|
#s,^(deb(-src)? http://deb.debian.org/debian '"$variant"'),#\1,' \ |
|
|
|
fi |
|
|
|
if [[ " ${tried[*]} " != *" ${variant}-archive-comment-out "* ]] && |
|
|
|
[[ "$failed_fetch" == *" http://archive.debian.org/debian/dists/$variant/"* ]]; then |
|
|
|
tried+=("${variant}-archive-comment-out") |
|
|
|
[ -z "$backup" ] && { |
|
|
|
backup=1 |
|
|
|
echo "Backup old /etc/apt/sources.list" |
|
|
|
cp -v /etc/apt/sources.list{,.myc-update} |
|
|
|
} |
|
|
|
echo "Applying ${variant}-archive-comment-out" |
|
|
|
sed -ri 's,^(deb(-src)? http://archive.debian.org/debian '"$variant"'),#\1,g' \ |
|
|
|
/etc/apt/sources.list |
|
|
|
fi |
|
|
|
done |
|
|
|
if [[ " ${tried[*]} " != *" ${variant}-security-comment-out "* ]] && |
|
|
|
[[ "$failed_release" == *"'http://security.debian.org $distrib/updates "* ]]; then |
|
|
|
tried+=("${distrib}-comment-out") |
|
|
|
[ -z "$backup" ] && { |
|
|
|
backup=1 |
|
|
|
echo "Backup old /etc/apt/sources.list" |
|
|
|
cp -v /etc/apt/sources.list{,.myc-update} |
|
|
|
} |
|
|
|
echo "Applying $distrib}-comment-out" |
|
|
|
sed -ri 's,^(deb(-src)? http://security.debian.org/ '"$distrib/updates"'),#\1,g' \ |
|
|
|
/etc/apt/sources.list |
|
|
|
fi |
|
|
|
done |
|
|
|
|
|
|
|
if [[ " ${tried[*]} " != *" change-release-fix "* ]] && |
|
|
|