abuild: rootbld: improve version compatibility

This commit is contained in:
Kaarle Ritvanen 2017-07-16 19:14:19 +03:00
parent e7404e1633
commit 4aa6e2ddff
1 changed files with 8 additions and 1 deletions

View File

@ -1997,6 +1997,13 @@ checksum() {
echo "sha512sums=\"$sha512sums\"" >>"$APKBUILD"
}
rootbld_actions() {
local part
for part in symlinksrc unpack prepare build rootpkg; do
runpart $part
done
}
rootbld() {
if apk_up2date && [ -z "$force" ]; then
msg "Package is up to date"
@ -2082,7 +2089,7 @@ rootbld() {
--hostname "build-edge-$CARCH" \
--chdir "$startdir" \
--setenv PATH /bin:/usr/bin:/sbin:/usr/sbin \
/usr/bin/abuild $force symlinksrc unpack prepare build rootpkg
/usr/bin/abuild $force rootbld_actions
update_abuildrepo_index
cleanup $CLEANUP
}