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>
This commit is contained in:
Xavier Chantry 2008-06-15 13:19:58 +02:00 committed by Dan McGee
parent fd8969f678
commit 8741908276
1 changed files with 5 additions and 0 deletions

View File

@ -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;