Commit 1ddc910e authored by Ariadne Conill's avatar Ariadne Conill

abuild: wrap check() with fakeroot

parent dec68bd0
......@@ -1401,7 +1401,7 @@ create_apks() {
}
build_abuildrepo() {
local d apk _build=build _check=check
local d apk _build=build _check=check_fakeroot
if ! is_function package; then
# if package() is missing then build is called from rootpkg
_build=true
......@@ -1626,6 +1626,13 @@ do_fakeroot() {
fi
}
# wrap check() with fakeroot
check_fakeroot() {
cd "$startdir"
[ -n "$FAKEROOT" ] && msg "Entering fakeroot..."
do_fakeroot "$abuild_path" $color_opt $keep_build check
}
# build and package in fakeroot
rootpkg() {
local _package=package
......
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