diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2014-09-08 12:15:51 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2014-09-09 15:06:24 +0200 |
commit | 3c78b7a354e9e4168efb30566180be7839d9a4a0 (patch) | |
tree | 2e40ce0f5718361beec5ad12d159eb3131c3207f | |
parent | ca745aebde43eda587b97e7b5c9d6b138d79627e (diff) | |
download | rpm-setup-3c78b7a354e9e4168efb30566180be7839d9a4a0.tar rpm-setup-3c78b7a354e9e4168efb30566180be7839d9a4a0.tar.gz rpm-setup-3c78b7a354e9e4168efb30566180be7839d9a4a0.tar.bz2 rpm-setup-3c78b7a354e9e4168efb30566180be7839d9a4a0.tar.xz rpm-setup-3c78b7a354e9e4168efb30566180be7839d9a4a0.zip |
sync (8/8): Handle broken pkgconfig files better, rhbz#484970
(Lubomir Rintel)
-rwxr-xr-x | pkgconfigdeps.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgconfigdeps.sh b/pkgconfigdeps.sh index 08713be..da6e9aa 100755 --- a/pkgconfigdeps.sh +++ b/pkgconfigdeps.sh @@ -28,7 +28,9 @@ case $1 in # We have a dependency. Make a note that we need the pkgconfig # tool for this package. test -z "$v" && test -n "$r" && echo "Error with pkgconfig($n)" >&2 && exit 1 - echo "pkgconfig($n)" "$r" "$v" + echo -n "pkgconfig($n) " + [ -n "$r" ] && [ -n "$v" ] && echo -n "$r" "$v" + echo done test ${PIPESTATUS[0]} -ne 0 && echo "$pkgconfig returned an error" >&2 && exit 1 # The dependency on the pkgconfig package itself. @@ -44,7 +46,10 @@ case $1 in export PKG_CONFIG_PATH="$DIR:$DIR/../../share/pkgconfig" $pkgconfig --print-errors --print-requires --print-requires-private $filename | while read n r v ; do test -z "$v" && test -n "$r" && echo "Error with pkgconfig($n)" >&2 && exit 1 - echo "pkgconfig($n)" "$r" "$v" + [ -n "$n" ] || continue + echo -n "pkgconfig($n) " + [ -n "$r" ] && [ -n "$v" ] && echo -n "$r" "$v" + echo done test ${PIPESTATUS[0]} -ne 0 && echo "$pkgconfig returned an error" >&2 && exit 1 esac |