Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fwife.git;a=commitdiff;h=508cbcaea67ad277a13cbba9ca337b1928e2da48

commit 508cbcaea67ad277a13cbba9ca337b1928e2da48
Author: Elentir <elen...@frugalware.org>
Date:   Sat Jun 19 17:37:48 2010 +0200

select,install: reduce log level when compiled with NDEBUG

diff --git a/src/plugins/install.c b/src/plugins/install.c
index e1f4764..8fa7ec8 100644
--- a/src/plugins/install.c
+++ b/src/plugins/install.c
@@ -268,7 +268,11 @@ int installpkgs(GList *pkgs)
}

//* Set pacman options *//
+#ifndef NDEBUG
pacman_set_option(PM_OPT_LOGMASK, -1);
+#else
+       pacman_set_option(PM_OPT_LOGMASK, PM_LOG_ERROR | PM_LOG_WARNING);
+#endif
pacman_set_option(PM_OPT_LOGCB, (long)cb_log);
pacman_set_option (PM_OPT_DLCB, (long)progress_update);
pacman_set_option (PM_OPT_DLOFFSET, (long)&offset);
diff --git a/src/plugins/select.c b/src/plugins/select.c
index cf4f826..bb03322 100644
--- a/src/plugins/select.c
+++ b/src/plugins/select.c
@@ -1113,7 +1113,11 @@ int prerun(GList **config)
return(1);
}

+#ifndef NDEBUG
pacman_set_option(PM_OPT_LOGMASK, -1);
+#else
+               pacman_set_option(PM_OPT_LOGMASK, PM_LOG_ERROR | 
PM_LOG_WARNING);
+#endif
pacman_set_option(PM_OPT_LOGCB, (long)cb_log);
if(pacman_set_option(PM_OPT_DBPATH, (long)PM_DBPATH) == -1)
{
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to