1
0
mirror of synced 2026-02-02 06:20:56 +00:00

Fix test suite failures in a Sid chroot

Problem was that the commented variant only was a new, $dist-security
one, but is also written if the security repo is disabled with other
distributions than sid/unstable.
This commit is contained in:
Axel Beckert
2020-12-20 08:47:31 +01:00
parent 285d2c80b9
commit 0da2ed1365

View File

@@ -89,7 +89,20 @@ E_O_APT
fi
else
cat <<E_O_APT >> ${prefix}/etc/apt/sources.list
if echo "${dist}" | egrep -q '\b(sarge|etch|lenny|squeeze|wheezyjessie|stretch|buster)\b'; then
cat <<E_O_APT >> ${prefix}/etc/apt/sources.list
#
# Security updates - Uncomment to enable.
#
# deb http://security.debian.org/ ${dist}/updates main contrib non-free
# deb-src http://security.debian.org/ ${dist}/updates main contrib non-free
E_O_APT
else
cat <<E_O_APT >> ${prefix}/etc/apt/sources.list
#
# Security updates - Uncomment to enable.
#
@@ -97,6 +110,7 @@ else
# deb-src http://security.debian.org/ ${dist}-security main contrib non-free
E_O_APT
fi
fi
#