autoport: fix check for -devel suffix in rebuild dependant mode

This commit is contained in:
Silvan Calarco 2022-06-25 14:28:23 +02:00
parent 5bbf2f8715
commit 3013fcd2d1

View File

@ -412,7 +412,7 @@ for TARGET_ARCH in ${TARGET_ARCHS}; do
let JOBNUM+=1
fi
currprovider=${p/*@}
if [ "$port_pkgbuilds/ $currprovider-devel }" != "$port_pkgbuilds" ]; then
if [ "${currprovider/-devel}" == "$currprovider" ]; then
currprovider=${currprovider}-devel
fi
currjobscriptargs="$currjobscriptargs --buildreq ${currprovider} >= ${port_pkg_epoch}:${port_pkg_version}-${port_pkg_release} "