projects/aports·commit ec0a5ee9

abuild: fix deps for versioned pkg-config deps

ec0a5ee9 · Natanael Copa <[email protected]> · 2015-06-12 07:12:47 +00:00

Fix version stripping when filtering out needed pkg-configs that are
provided from same (sub)package.
Commit
ec0a5ee93eb421e30c135057e49c395d9873a626
Parents
09427f9c

Changes

1 files changed · +1 −1

FileStatusAddDelContent
abuild.inmodified+1−1View file

abuild.in

View file
diff --git a/abuild.in b/abuild.in
index 703117c..0813dd3 100644
--- a/abuild.in
+++ b/abuild.in
@@ -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