diff options
author | nicoo <nicoo@mur.at> | 2024-05-12 13:48:23 +0000 |
---|---|---|
committer | nicoo <nicoo@mur.at> | 2024-05-12 13:49:32 +0000 |
commit | 4af3b807fccfddfceb4aad422018a5f9e8cdb8a0 (patch) | |
tree | 5a4567b78c97fbd4a4e98a60e3c21104d267f1bf /pkgs/build-support/testers | |
parent | 1d4d9facbcb00d2bce2fe15d9c8fdaa2137833eb (diff) |
testers.hasPkgConfigModules: fix `versionCheck` conditional
Broke tests, as the version check was effectively always enabled: https://github.com/NixOS/nixpkgs/pull/307770#issuecomment-2102586718
Diffstat (limited to 'pkgs/build-support/testers')
-rw-r--r-- | pkgs/build-support/testers/hasPkgConfigModules/tester.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/testers/hasPkgConfigModules/tester.nix b/pkgs/build-support/testers/hasPkgConfigModules/tester.nix index b8ae884ba7b0f..6a09255bde6c3 100644 --- a/pkgs/build-support/testers/hasPkgConfigModules/tester.nix +++ b/pkgs/build-support/testers/hasPkgConfigModules/tester.nix @@ -55,7 +55,7 @@ runCommand testName { fi done - if [[ $notFound -eq 0 ]] && ([[ $versionMismatch -eq 0 ]] || [[ "$versionCheck" == false ]]); then + if [[ $notFound -eq 0 ]] && ([[ $versionMismatch -eq 0 ]] || [[ -z "$versionCheck" ]]); then exit 0 fi if [[ $notFound -ne 0 ]]; then |