testers.hasPkgConfigModules: fix versionCheck conditional

Broke tests, as the version check was effectively always enabled:
  https://github.com/NixOS/nixpkgs/pull/307770#issuecomment-2102586718
This commit is contained in:
nicoo 2024-05-12 13:48:23 +00:00
parent 1d4d9facbc
commit 4af3b807fc

View File

@ -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