summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-06-12 07:12:47 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-06-12 07:12:47 +0000
commitec0a5ee93eb421e30c135057e49c395d9873a626 (patch)
tree6018bc819600a85f92ae10077cc7926450b92cb5
parent09427f9c7ceef26ad0c309f9f0af2087922ae59c (diff)
downloadabuild-ec0a5ee93eb421e30c135057e49c395d9873a626.tar.bz2
abuild-ec0a5ee93eb421e30c135057e49c395d9873a626.tar.xz
abuild: fix deps for versioned pkg-config deps
Fix version stripping when filtering out needed pkg-configs that are provided from same (sub)package.
-rw-r--r--abuild.in2
1 files changed, 1 insertions, 1 deletions
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