tests(mmdebstrap): remove unused distribution parsing

The test case mmdebstrap still contains a code block that parses
the target distribution from the changelog file, but the result is
unused. This most likely was forgotten to remove with the change
recorded in commit c2c859ba66ce6079558f498efa8a2dbe1fc58b25.

Signed-off-by: Dominik Viererbe <dominik.viererbe@canonical.com>
This commit is contained in:
Dominik Viererbe 2024-06-20 15:12:13 +03:00
parent 661f755c57
commit 44b91c8e7b
No known key found for this signature in database
GPG Key ID: 29C8F99C83654F1C
2 changed files with 6 additions and 7 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
dash (0.5.12-10) UNRELEASED; urgency=medium
* d/t/mmdebstrap: remove unused parsing of distribution from changelog
-- Dominik Viererbe <dominik.viererbe@canonical.com> Thu, 20 Jun 2024 15:10:44 +0300
dash (0.5.12-9) unstable; urgency=medium
[ Helmut Grohne ]

View File

@ -19,13 +19,6 @@ set -eux
VERSION="$(dpkg-parsechangelog -SVersion)"
apt-cache show "dash=$VERSION" >/dev/null || exit 1
DIST="$(dpkg-parsechangelog -SDistribution)"
if [ "$DIST" = "UNRELEASED" ]; then
# take Distribution from the previous entry instead
DIST="$(dpkg-parsechangelog -o1 -c1 -SDistribution)" || DIST="unstable"
echo "WARN: Using Distribution: $DIST instead of UNRELEASED" >&2
fi
# We cannot use debootstrap because debootstrap cannot install from multiple
# mirrors. Since dash is Essential:yes it does not test the right thing if we
# first install with dash from unstable and then upgrade to dash from salsaci.