From ff883048eebdf997d9849e011544560805060ac0 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 14 Dec 2024 13:45:13 +0000 Subject: [PATCH] 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 --- tests/libpakfire/os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3