[pacman-dev] [PATCH] Treat -Sc like an option
Dan McGee
dpmcgee at gmail.com
Mon Mar 10 20:29:06 EDT 2008
On Sat, Mar 8, 2008 at 11:59 AM, Nagy Gabor <ngaba at bibl.u-szeged.hu> wrote:
> >From 2ffe8c06f1fdadfa2f9ccd38a706568f261f3f6c Mon Sep 17 00:00:00 2001
> From: Nagy Gabor <ngaba at bibl.u-szeged.hu>
> Date: Sat, 8 Mar 2008 17:58:15 +0100
> Subject: [PATCH] Treat -Sc like an option
>
> >From now on 'pacman -Sc target' will first clean the cache, then install target...
>
> Signed-off-by: Nagy Gabor <ngaba at bibl.u-szeged.hu>
> ---
> src/pacman/sync.c | 4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/src/pacman/sync.c b/src/pacman/sync.c
> index 130d356..1355cd8 100644
> --- a/src/pacman/sync.c
> +++ b/src/pacman/sync.c
> @@ -773,7 +773,9 @@ int pacman_sync(alpm_list_t *targets)
> ret++;
> }
>
> - return(ret);
> + if(ret) {
> + return(ret);
> + }
> }
>
> /* ensure we have at least one valid sync db set up */
This seems sane, I'm just not sure how useful (or expected) this
behavior would be. Can you give a use case?
-Dan
More information about the pacman-dev
mailing list