diff options
author | 2011-06-07 06:42:19 +0000 | |
---|---|---|
committer | 2011-06-07 06:42:19 +0000 | |
commit | a7e5ba854d2f1c99255afb35ef882618468bd81d (patch) | |
tree | 079d12ff7ef2c5ec8a185b3da54927e7cb4a15a7 | |
parent | fix URLs in comments and capitalization, from Brad (diff) | |
download | wireguard-openbsd-a7e5ba854d2f1c99255afb35ef882618468bd81d.tar.xz wireguard-openbsd-a7e5ba854d2f1c99255afb35ef882618468bd81d.zip |
Don't try to parse the requirements for a module if only modversion or
printprovides are requested.
-rw-r--r-- | usr.bin/pkg-config/pkg-config | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/pkg-config/pkg-config b/usr.bin/pkg-config/pkg-config index 3fba64d5cd5..3228488ff7d 100644 --- a/usr.bin/pkg-config/pkg-config +++ b/usr.bin/pkg-config/pkg-config @@ -1,5 +1,5 @@ #!/usr/bin/perl -# $OpenBSD: pkg-config,v 1.51 2011/06/06 17:49:37 jasper Exp $ +# $OpenBSD: pkg-config,v 1.52 2011/06/07 06:42:19 jasper Exp $ # $CSK: pkgconfig.pl,v 1.39 2006/11/27 16:26:20 ckuethe Exp $ # Copyright (c) 2006 Chris Kuethe <ckuethe@openbsd.org> @@ -145,7 +145,11 @@ while (@ARGV){ $op = shift @ARGV; $v = shift @ARGV; } - handle_config($p, $op, $v, $cfg_full_list); + # For these modes we just need some meta-information and + # parsing the requirements is not needed. + if (!($mode{modversion} || $mode{printprovides})) { + handle_config($p, $op, $v, $cfg_full_list); + } push(@$top_config, $p); } |