From: Panu Matilainen Date: Wed, 10 Oct 2007 08:30:37 +0000 (+0300) Subject: pkgconfig dependency script fixes X-Git-Tag: rpm-4.6.0-rc1~1661 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=67b68cbeb97831844dd06bc6e231a3d78f348bde;p=platform%2Fupstream%2Frpm.git pkgconfig dependency script fixes - don't make assumptions about package names, requires pkg-config executable path instead - always create pkg-config dependency if *.pc files are included, not just in case the *.pc file requires other pkg-config modules --- diff --git a/scripts/pkgconfigdeps.sh b/scripts/pkgconfigdeps.sh index 7a81234..882d195 100755 --- a/scripts/pkgconfigdeps.sh +++ b/scripts/pkgconfigdeps.sh @@ -30,9 +30,9 @@ case $1 in while read filename ; do case "${filename}" in *.pc) + i="`expr $i + 1`" + [ $i -eq 1 ] && echo "$pkgconfig" $pkgconfig --print-requires "$filename" 2> /dev/null | while read n r v ; do - i="`expr $i + 1`" - [ $i -eq 1 ] && echo "pkgconfig" echo "pkgconfig($n)" "$r" "$v" done esac