--- /usr/bin/makepkg 2009-11-11 00:58:30.000000000 +0100 +++ /usr/bin/makepkg 2010-02-21 00:38:20.000000000 +0100 @@ -1621,10 +1621,13 @@ if [ "$ASROOT" -eq 0 \ -a \( "$DEP_BIN" -eq 1 -o "$RMDEPS" -eq 1 -o "$INSTALL" -eq 1 \) ]; then if [ ! "$(type -p sudo)" ]; then - error "$(gettext "Cannot find the sudo binary! Is sudo installed?")" + warning "$(gettext "Cannot find the sudo binary! Is sudo installed?")" plain "$(gettext "Missing dependencies cannot be installed or removed as a normal user")" plain "$(gettext "without sudo; install and configure sudo to auto-resolve dependencies.")" - exit 1 +sudo() { + plain "$(gettext "Enter root password:")" + su -- root -c "$*" +} fi fi