diff options
author | Nicolas Vigier <boklm@mageia.org> | 2011-03-23 20:10:40 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2011-03-23 20:10:40 +0000 |
commit | bf30d900ba2b09f12ca38871f31475ef21934850 (patch) | |
tree | 5c80dd772e820a26394e351fcddf2afe2fd76e78 /pkgconfigdeps.sh | |
parent | c4ff82b34b0682f3b876d0d520f502171d395f5d (diff) | |
download | rpm-setup-bf30d900ba2b09f12ca38871f31475ef21934850.tar rpm-setup-bf30d900ba2b09f12ca38871f31475ef21934850.tar.gz rpm-setup-bf30d900ba2b09f12ca38871f31475ef21934850.tar.bz2 rpm-setup-bf30d900ba2b09f12ca38871f31475ef21934850.tar.xz rpm-setup-bf30d900ba2b09f12ca38871f31475ef21934850.zip |
fix check of pkg-config error
Diffstat (limited to 'pkgconfigdeps.sh')
-rwxr-xr-x | pkgconfigdeps.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgconfigdeps.sh b/pkgconfigdeps.sh index f9fb1e5..e5d2843 100755 --- a/pkgconfigdeps.sh +++ b/pkgconfigdeps.sh @@ -26,7 +26,7 @@ case $1 in PKG_CONFIG_PATH=$PKG_CONFIG_PATH $pkgconfig --print-provides $pcfiles 2> /dev/null | while read n r v ; do # We have a dependency. Make a note that we need the pkgconfig # tool for this package. - test -z $v && echo "Error with pkgconfig($n)" >&2 && exit 1 + test -z "$v" && test -n "$r" && echo "Error with pkgconfig($n)" >&2 && exit 1 echo "pkgconfig($n)" "$r" "$v" done test $? -ne 0 && exit 1 @@ -41,7 +41,7 @@ case $1 in esac done PKG_CONFIG_PATH=$PKG_CONFIG_PATH $pkgconfig --print-requires ${pcfiles} 2> /dev/null | while read n r v ; do - test -z $v && echo "Error with pkgconfig($n)" >&2 && exit 1 + test -z "$v" && test -n "$r" && echo "Error with pkgconfig($n)" >&2 && exit 1 echo "pkgconfig($n)" "$r" "$v" done test $? -ne 0 && exit 1 |