diff options
author | William Pitcock <nenolod@dereferenced.org> | 2017-03-27 19:38:38 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2017-03-27 19:38:38 +0000 |
commit | 1ddc910eb328b4534234bd2f97e631a075241abd (patch) | |
tree | a5ca46fd0078739f5256a4bf810cff11d699dcd1 /abuild.in | |
parent | dec68bd03fb989c5af3c2b95d4b8fafeeed6b0f5 (diff) | |
download | abuild-1ddc910eb328b4534234bd2f97e631a075241abd.tar.gz abuild-1ddc910eb328b4534234bd2f97e631a075241abd.tar.bz2 abuild-1ddc910eb328b4534234bd2f97e631a075241abd.tar.xz abuild-1ddc910eb328b4534234bd2f97e631a075241abd.zip |
abuild: wrap check() with fakeroot
Diffstat (limited to 'abuild.in')
-rw-r--r-- | abuild.in | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 |