abuild: version cmd: providers

The default provider priority is 0, which disables the normal way apk
selects an unversioned virtual dependency.  Instead, version the
provider so that cmd: dependencies can be robustly used like normal
dependencies.
This commit is contained in:
Ariadne Conill 2021-08-16 13:50:05 -06:00 committed by Kevin Daudt
parent ba127ff45c
commit 02652f5dd6
1 changed files with 2 additions and 1 deletions

View File

@ -1488,7 +1488,8 @@ trace_apk_deps() {
>> "$dir"/.PKGINFO
fi
if [ -f "$dir"/.provides-command ]; then
sed 's/^/provides = cmd:/' "$dir"/.provides-command | sort -u \
sed -e 's/^/provides = cmd:/' -e "s/\$/=$pkgver-r$pkgrel/" \
"$dir"/.provides-command | sort -u \
>> "$dir"/.PKGINFO
fi
if [ -f "$dir"/.provides-py ]; then