[pacman-dev] [PATCH] Fix double spaces in "Running %s as root is not allowed" message

Allan McRae allan at archlinux.org
Sat Dec 20 10:53:14 UTC 2014


On 19/12/14 23:22, tredaelli at archlinux.info wrote:
> From: Timothy Redaelli <timothy.redaelli at gmail.com>
> 
> ---
>  scripts/makepkg.sh.in | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
> index 33dff245..b4577f10 100644
> --- a/scripts/makepkg.sh.in
> +++ b/scripts/makepkg.sh.in
> @@ -3435,7 +3435,7 @@ CARCH=${_CARCH:-$CARCH}
>  if (( ! INFAKEROOT )); then
>  	if (( EUID == 0 )); then
>  		error "$(gettext "Running %s as root is not allowed as it can cause permanent,\n\
> -catastrophic damage to your system.")"
> +catastrophic damage to your system.")" "$0"
>  		exit 1 # $E_USER_ABORT
>  	fi
>  else
> 

I modified this to just use "makepkg" rather than $0.


More information about the pacman-dev mailing list