[pacman-dev] [PATCH] makepkg: also clean cache if no character was entered at the prompt

Allan McRae allan at archlinux.org
Thu Oct 22 03:38:55 EDT 2009


Cedric Staniewski wrote:
> >From c3b242554ef7958257743a975e3928dcb8903d69 Mon Sep 17 00:00:00 2001
> From: Cedric Staniewski <cedric at gmx.ca>
> Date: Wed, 21 Oct 2009 19:08:41 +0200
> -- 8< --
> Subject: [PATCH] makepkg: change preselected option for cleaning the cache from Y to N
>
> Signed-off-by: Cedric Staniewski <cedric at gmx.ca>
> ---
>  scripts/makepkg.sh.in |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
> index 40367ae..47f9873 100644
> --- a/scripts/makepkg.sh.in
> +++ b/scripts/makepkg.sh.in
> @@ -1597,7 +1597,7 @@ if [ "$CLEANCACHE" -eq 1 ]; then
>  	if [ -n "$SRCDEST" -a "$SRCDEST" != "$startdir" ]; then
>  		msg "$(gettext "Cleaning up ALL files from %s.")" "$SRCDEST"
>  		echo -n "$(gettext "    Are you sure you wish to do this? ")"
> -		echo -n "$(gettext "[Y/n]")"
> +		echo -n "$(gettext "[y/N]")"
>  		read answer
>  		answer="${answer^^}"
>  		if [ "$answer" = "$(gettext "YES")" -o "$answer" = "$(gettext "Y")" ]; then
>   


Pushed to my working branch.

Allan



More information about the pacman-dev mailing list