Make tools/start_new_disc also cleanup SHA512 checksums.

This commit is contained in:
Samuel Thibault 2020-07-25 17:59:13 +02:00 committed by Steve McIntyre
parent 966016c495
commit d21568c454
2 changed files with 6 additions and 3 deletions

5
debian/changelog vendored
View File

@ -17,7 +17,10 @@ debian-cd (3.1.32) UNRELEASED; urgency=medium
[ Steev Klimaszewski ]
* Fix sed delimiters in various scripts
-- Steve McIntyre <93sam@debian.org> sat, 12 Dec 2020 03:12:36 +0100
[ Samuel Thibault ]
* Make tools/start_new_disc also cleanup SHA512 checksums.
-- Steve McIntyre <93sam@debian.org> Sat, 12 Dec 2020 03:12:36 +0100
debian-cd (3.1.31) unstable; urgency=medium

View File

@ -363,7 +363,7 @@ if [ -e "$MIRROR/dists/$CODENAME/Release" ] ; then
sed -e "s/^Architectures: .*$/Architectures: $ARCHES/" \
$MIRROR/dists/$CODENAME/Release | \
sed -e "s|^Components: .*$|Components: $SECTIONS|" | \
perl -ne 'if (/^(MD5Sum|SHA1|SHA256):/i) { $f=1; next }
perl -ne 'if (/^(MD5Sum|SHA1|SHA256|SHA512):/i) { $f=1; next }
if ($f) {
unless (/^ /) { print; $f=0 }
} else { print }' > dists/$CODENAME/Release
@ -390,7 +390,7 @@ if [ "$BACKPORTS"x != ""x ]; then
sed -e "s/^Architectures: .*$/Architectures: $ARCHES/" \
$MIRROR/dists/$CODENAME-backports/Release | \
sed -e "s|^Components: .*$|Components: $SECTIONS|" | \
perl -ne 'if (/^(MD5Sum|SHA1|SHA256):/i) { $f=1; next }
perl -ne 'if (/^(MD5Sum|SHA1|SHA256|SHA512):/i) { $f=1; next }
if ($f) {
unless (/^ /) { print; $f=0 }
} else { print }' > dists/$CODENAME-backports/Release