3
0
Fork 0
forked from mirrors/nixpkgs

validatePkgConfig: fix variable scope

validatePkgConfig failed due to a wrong variable scope, as reported in
issue #100834. This change corrects the variable scoping.
This commit is contained in:
Daniël de Kok 2020-10-18 14:00:05 +02:00
parent 7c4305be84
commit 48a20e9337

View file

@ -3,9 +3,8 @@
fixupOutputHooks+=(_validatePkgConfig)
_validatePkgConfig() {
local bail=0
for pc in $(find "$prefix" -name '*.pc'); do
local bail=0
# Do not fail immediately. It's nice to see all errors when
# there are multiple pkgconfig files.
if ! pkg-config --validate "$pc"; then