abuild: fix deps for versioned pkg-config deps

Fix version stripping when filtering out needed pkg-configs that are
provided from same (sub)package.
This commit is contained in:
Natanael Copa 2015-06-12 07:12:47 +00:00
parent 09427f9c7c
commit ec0a5ee93e
1 changed files with 1 additions and 1 deletions

View File

@ -1239,7 +1239,7 @@ scan_pkgconfig_depends() {
| sed -E 's/\s*([<>=]+)\s*/\1/' \
| while read pc; do
# only add files that are not self provided
if ! grep -q -w "^${pc%[<>=]*}" "$provides_pc"; then
if ! grep -q -w "^${pc%%[<>=]*}" "$provides_pc"; then
echo "$pc" >> "$controldir"/.needs-pc
fi
done