[pacman-dev] [PATCH 4/4] pacman: set program name for logging

Andrew Gregory andrew.gregory.8 at gmail.com
Thu Dec 20 17:09:50 EST 2012


Signed-off-by: Andrew Gregory <andrew.gregory.8 at gmail.com>
---
 src/pacman/conf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/pacman/conf.c b/src/pacman/conf.c
index bbec281..f012908 100644
--- a/src/pacman/conf.c
+++ b/src/pacman/conf.c
@@ -621,6 +621,7 @@ static int setup_libalpm(void)
 	alpm_option_set_eventcb(handle, cb_event);
 	alpm_option_set_questioncb(handle, cb_question);
 	alpm_option_set_progresscb(handle, cb_progress);
+	alpm_option_set_program(handle, "PACMAN");
 
 	config->logfile = config->logfile ? config->logfile : strdup(LOGFILE);
 	ret = alpm_option_set_logfile(handle, config->logfile);
-- 
1.8.0.2



More information about the pacman-dev mailing list