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:
parent
7c4305be84
commit
48a20e9337
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue