From e60ca3a77a1c3ad026047bc5d3c019f644852e14 Mon Sep 17 00:00:00 2001 From: "piman@chromium.org" Date: Fri, 12 Nov 2010 17:16:17 +0000 Subject: [PATCH] Fix pkg-config-wrapper to forward the return value from pkg-config BUG=None TEST=Run ./pkg-config-wrapper / --atleast-version=3.0 inputproto and check that it returns 1 Review URL: http://codereview.chromium.org/4900001 git-svn-id: http://src.chromium.org/svn/trunk/src/build@65956 4ff67af0-8c30-449e-8e8b-ad334ec8d88c --- linux/pkg-config-wrapper | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/linux/pkg-config-wrapper b/linux/pkg-config-wrapper index fa76c2ea5..d94b99747 100755 --- a/linux/pkg-config-wrapper +++ b/linux/pkg-config-wrapper @@ -11,4 +11,6 @@ rewrite=`dirname $0`/rewrite_dirs.py shift config_path=$root/usr/lib/pkgconfig:$root/usr/share/pkgconfig -PKG_CONFIG_PATH=$config_path pkg-config --define-variable=prefix=/usr "$@" | $rewrite $root +set -e +result=`PKG_CONFIG_PATH=$config_path pkg-config --define-variable=prefix=/usr "$@"` +echo "$result"| $rewrite $root