mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-01-27 17:53:54 +00:00
abuild: wrap check() with fakeroot
This commit is contained in:
parent
dec68bd03f
commit
1ddc910eb3
@ -1401,7 +1401,7 @@ create_apks() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
build_abuildrepo() {
|
build_abuildrepo() {
|
||||||
local d apk _build=build _check=check
|
local d apk _build=build _check=check_fakeroot
|
||||||
if ! is_function package; then
|
if ! is_function package; then
|
||||||
# if package() is missing then build is called from rootpkg
|
# if package() is missing then build is called from rootpkg
|
||||||
_build=true
|
_build=true
|
||||||
@ -1626,6 +1626,13 @@ do_fakeroot() {
|
|||||||
fi
|
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
|
# build and package in fakeroot
|
||||||
rootpkg() {
|
rootpkg() {
|
||||||
local _package=package
|
local _package=package
|
||||||
|
Loading…
Reference in New Issue
Block a user