From 874190827676e3a974e8c5fef6c51b9e9d6b60fa Mon Sep 17 00:00:00 2001 From: Xavier Chantry Date: Sun, 15 Jun 2008 13:19:58 +0200 Subject: src/pacman/sync.c : Display only errors with -Sp and -Sw operations. In particular, this avoids warnings cluttering the output of these operations. Signed-off-by: Xavier Chantry Signed-off-by: Dan McGee --- src/pacman/sync.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/pacman') diff --git a/src/pacman/sync.c b/src/pacman/sync.c index 1e2af45f..fdc5ed09 100644 --- a/src/pacman/sync.c +++ b/src/pacman/sync.c @@ -734,6 +734,11 @@ int pacman_sync(alpm_list_t *targets) { alpm_list_t *sync_dbs = NULL; + /* Display only errors with -Sp and -Sw operations */ + if(config->flags & (PM_TRANS_FLAG_DOWNLOADONLY | PM_TRANS_FLAG_PRINTURIS)) { + config->logmask = PM_LOG_ERROR; + } + /* clean the cache */ if(config->op_s_clean) { int ret = 0; -- cgit v1.2.3-70-g09d2