8 Mar
2008
8 Mar
'08
4:59 p.m.
From 2ffe8c06f1fdadfa2f9ccd38a706568f261f3f6c Mon Sep 17 00:00:00 2001 From: Nagy Gabor <ngaba@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@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 */ -- 1.5.3.8