From 43efaaaae80c77e81145067c0b2b57109dd0b33d Mon Sep 17 00:00:00 2001 From: nicoo Date: Sun, 12 May 2024 14:10:54 +0000 Subject: [PATCH] =?UTF-8?q?testers.hasPkgConfigModules:=20don't=20display?= =?UTF-8?q?=20=E2=9D=8C=20on=20ignored=20version=20mismatches?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/build-support/testers/hasPkgConfigModules/tester.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/testers/hasPkgConfigModules/tester.nix b/pkgs/build-support/testers/hasPkgConfigModules/tester.nix index 6a09255bde6c..7b22ffbf6f19 100644 --- a/pkgs/build-support/testers/hasPkgConfigModules/tester.nix +++ b/pkgs/build-support/testers/hasPkgConfigModules/tester.nix @@ -45,7 +45,7 @@ runCommand testName { if [[ "$moduleVersion" == "$version" ]]; then echo "✅ pkg-config module $moduleName exists and has version $moduleVersion" else - echo "❌ pkg-config module $moduleName exists and has version $moduleVersion when $version was expected" + echo "${if versionCheck then "❌" else "⚠"} pkg-config module $moduleName exists and has version $moduleVersion when $version was expected" ((versionMismatch+=1)) fi printf '%s\t%s\n' "$moduleName" "$version" >> "$out"