]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: install binaries from local d/control file
authorLuca Boccassi <bluca@debian.org>
Sun, 14 Feb 2021 19:29:42 +0000 (19:29 +0000)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 15 Feb 2021 09:17:39 +0000 (10:17 +0100)
The source package in the apt cache might be older than the
packaging from salsa.debian.org/systemd-team/systemd so it might not
list all the current binary packages.
This is currently the case for systemd-timesyncd, so TEST-30 fails.

Simply grep the control file rather than using apt-cache when iterating
over the packages contents.

test/test-functions

index 7cce7cdb1b91fd76783086a01aa22bc83c797bfe..7b8a1a32077ee4c0ff5b7cc57dcb4ad9482efdd6 100644 (file)
@@ -750,7 +750,7 @@ install_compiled_systemd() {
 install_debian_systemd() {
     ddebug "Install debian systemd"
 
-    local _systemd_pkgs=$(apt-cache showsrc systemd | grep -m 1 -E '^Binary:' | cut -d ':' -f 2 | tr -d ,)
+    local _systemd_pkgs=$(grep -E '^Package:' ${SOURCE_DIR}/debian/control | cut -d ':' -f 2)
     local _files=""
     for deb in $_systemd_pkgs; do
         _files=$(dpkg-query -L $deb 2>/dev/null) || continue