Commit 324a5759 authored by Natanael Copa's avatar Natanael Copa

abuild: run build actions via runpart

So we make sure chdir $builddir happens when it should.
parent 0bf61ee0
...@@ -1508,7 +1508,7 @@ create_apks() { ...@@ -1508,7 +1508,7 @@ create_apks() {
} }
build_abuildrepo() { build_abuildrepo() {
local _check=check local part _check=check
if options_has "checkroot"; then if options_has "checkroot"; then
_check=check_fakeroot _check=check_fakeroot
fi fi
...@@ -1520,16 +1520,10 @@ build_abuildrepo() { ...@@ -1520,16 +1520,10 @@ build_abuildrepo() {
abuild-sign --installed abuild-sign --installed
logcmd "building $repo/$pkgname-$pkgver-r$pkgrel" logcmd "building $repo/$pkgname-$pkgver-r$pkgrel"
msg "Building $repo/$pkgname $pkgver-r$pkgrel (using $program $program_version)" msg "Building $repo/$pkgname $pkgver-r$pkgrel (using $program $program_version)"
sanitycheck for part in sanitycheck builddeps clean fetch unpack prepare mkusers build \
builddeps $_check rootpkg; do
clean runpart $part
fetch done
unpack
prepare
mkusers
build
$_check
rootpkg
cleanup $CLEANUP cleanup $CLEANUP
fi fi
update_abuildrepo_index update_abuildrepo_index
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment