mirror of
https://github.com/moparisthebest/pacman
synced 2024-10-31 15:45:03 -04:00
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:
parent
fd8969f678
commit
8741908276
@ -734,6 +734,11 @@ int pacman_sync(alpm_list_t *targets)
|
|||||||
{
|
{
|
||||||
alpm_list_t *sync_dbs = NULL;
|
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 */
|
/* clean the cache */
|
||||||
if(config->op_s_clean) {
|
if(config->op_s_clean) {
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user