abuild: fix detection of pkg-config module version

pkg-config will not print version unless dependencies are met so we can
not exclude the system modules.
This commit is contained in:
Natanael Copa 2015-06-04 07:51:44 +00:00
parent 2f5ef7e2fa
commit fddc01bbbb

View File

@ -909,7 +909,7 @@ prepare_pkgconfig_provides() {
fi
local f=${i##*/}
local v=$(PKG_CONFIG_PATH="$dir"/usr/lib/pkgconfig pkg-config \
--env-only --modversion ${f%.pc})
--modversion ${f%.pc})
echo "${f%.pc}=${v:-0}" >> "$controldir"/.provides-pc
done
}