Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorXavier Chantry <shiningxc@gmail.com>2008-06-15 13:19:58 +0200
committerDan McGee <dan@archlinux.org>2008-07-13 09:19:24 -0500
commit874190827676e3a974e8c5fef6c51b9e9d6b60fa (patch)
treeb88af3a161875ba5bc4f790fcfc04f1606c3ead4 /src
parentfd8969f67875ad6854725165b9530f4be26c5d96 (diff)
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 <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/sync.c5
1 files changed, 5 insertions, 0 deletions
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;