From: Michael Tremer Date: Sat, 14 Dec 2024 13:45:13 +0000 (+0000) Subject: tests: os: Don't fail if no VERSION is set in /etc/os-release X-Git-Tag: 0.9.30~721 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff883048eebdf997d9849e011544560805060ac0;p=pakfire.git tests: os: Don't fail if no VERSION is set in /etc/os-release ArchLinux does not seem to use that field. Signed-off-by: Michael Tremer --- diff --git a/tests/libpakfire/os.c b/tests/libpakfire/os.c index 342b249b3..25cd65445 100644 --- a/tests/libpakfire/os.c +++ b/tests/libpakfire/os.c @@ -106,7 +106,7 @@ static int test_distro(const struct test* t) { ASSERT_SUCCESS(pakfire_distro(&distro, NULL)); ASSERT(*distro.name); - ASSERT(*distro.version); + ASSERT(*distro.version || *distro.version_id); return EXIT_SUCCESS;