[pacman-dev] [PATCH] Re-enable --debug with -Sw and -Sp

Nagy Gabor ngaba at bibl.u-szeged.hu
Mon Jul 21 08:03:57 EDT 2008


From c533684914d28407a0a7399e3026c747987d5de3 Mon Sep 17 00:00:00 2001
From: Nagy Gabor <ngaba at bibl.u-szeged.hu>
Date: Mon, 21 Jul 2008 13:57:02 +0200
Subject: [PATCH] Re-enable --debug with -Sw and -Sp

Commit 874190827676e3a974e8c5fef6c51b9e9d6b60fa disabled --debug in these
cases. We just clear PM_LOG_WARNING flag now.

Signed-off-by: Nagy Gabor <ngaba at bibl.u-szeged.hu>
---
 src/pacman/sync.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/pacman/sync.c b/src/pacman/sync.c
index b154b91..20daada 100644
--- a/src/pacman/sync.c
+++ b/src/pacman/sync.c
@@ -740,7 +740,7 @@ int pacman_sync(alpm_list_t *targets)
 
 	/* Display only errors with -Sp and -Sw operations */
 	if(config->flags & (PM_TRANS_FLAG_DOWNLOADONLY | PM_TRANS_FLAG_PRINTURIS)) {
-		config->logmask = PM_LOG_ERROR;
+		config->logmask = config->logmask & ~PM_LOG_WARNING;
 	}
 
 	/* clean the cache */
-- 
1.5.6.3





More information about the pacman-dev mailing list