summaryrefslogtreecommitdiffstats
path: root/scripts/libmakepkg/executable
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/libmakepkg/executable')
-rw-r--r--scripts/libmakepkg/executable/fakeroot.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/libmakepkg/executable/fakeroot.sh.in b/scripts/libmakepkg/executable/fakeroot.sh.in
index 56c1b3fd..09064543 100644
--- a/scripts/libmakepkg/executable/fakeroot.sh.in
+++ b/scripts/libmakepkg/executable/fakeroot.sh.in
@@ -28,7 +28,7 @@ source "$LIBRARY/util/option.sh"
executable_functions+=('executable_fakeroot')
executable_fakeroot() {
- if check_buildenv "fakeroot" "y" && (( EUID > 0 )); then
+ if (( SOURCEONLY || BUILDPKG )); then
if ! type -p fakeroot >/dev/null; then
error "$(gettext "Cannot find the %s binary.")" "fakeroot"
return 1