From: Zygmunt Krynicki Date: Thu, 30 May 2024 09:45:20 +0000 (+0200) Subject: packaging: cope with unset ID and VERSION_ID X-Git-Tag: archive/raspbian/2.68.3-3+rpi1^2^2^2^2^2^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=bd76ccd7065f3720a8bc741b8fad1925708fd474;p=snapd.git packaging: cope with unset ID and VERSION_ID There is no guarantee that ID and VERSION_ID are set in /etc/os-release. Provide defaults for ID and VERSION_ID so that spread runs with _some_ system name. Spread rejects system names with two consecutive dashes, so use a special-case for unset VERSION_ID since we know it is used in a context of the Debian archive. Signed-off-by: Zygmunt Krynicki Gbp-Pq: Name 0016-PATCH-15-18-packaging-cope-with-unset-ID-and-VERSION.patch --- diff --git a/packaging/debian-sid/tests/integrationtests b/packaging/debian-sid/tests/integrationtests index eee0d334..3751b713 100644 --- a/packaging/debian-sid/tests/integrationtests +++ b/packaging/debian-sid/tests/integrationtests @@ -44,7 +44,7 @@ snap install --classic go . /etc/os-release export GOPATH=/tmp/go /snap/bin/go install github.com/snapcore/spread/cmd/spread@latest -/tmp/go/bin/spread -v "autopkgtest:${ID}-${VERSION_ID}-$(dpkg --print-architecture)":tests/smoke/ +/tmp/go/bin/spread -v "autopkgtest:${ID:-linux}-${VERSION_ID:-sid}-$(dpkg --print-architecture)":tests/smoke/ # store journal info for inspectsion journalctl --sync