index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2007-07-10 10:31:03 -0400 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-07-10 10:31:03 -0400 |
commit | 573b80405c668b0ed3aa2b2d52998f102c01f56e (patch) | |
tree | ca01184f0c316fd643617df4a97c2df3002c056e | |
parent | 5e68e9d4514b5e3e50b25e4242be0a4d27da4fdc (diff) |
-rw-r--r-- | scripts/makepkg.sh.in | 4 |
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 533822d2..ed12e761 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -1107,13 +1107,13 @@ if [ "$INFAKEROOT" = "0" ]; then error "$(gettext "The --asroot option is meant for the root user only.")" plain "$(gettext "Please rerun makepkg without the --asroot flag.")" exit 1 # $E_USER_ABORT - elif [ "$(check_buildenv fakeroot)" = "y" ]; then + elif [ "$(check_buildenv fakeroot)" = "y" -a $EUID -gt 0 ]; then if [ ! $(type -p fakeroot) ]; then error "$(gettext "Fakeroot must be installed if using the 'fakeroot' option")" plain "$(gettext "in the BUILDENV array in %s.")" "$confdir/makepkg.conf" exit 1 fi - else + elif [ $EUID -gt 0 ]; then warning "$(gettext "Running makepkg as an unprivileged user will result in non-root")" plain "$(gettext "ownership of the packaged files. Try using the fakeroot environment by")" plain "$(gettext "placing 'fakeroot' in the BUILDENV array in makepkg.conf.")" |