summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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;