Git-Url:
http://git.frugalware.org/gitweb/gitweb.cgi?p=gfpm.git;a=commitdiff;h=62d2e4276bae36212bfcab3b7ab07e84cff69b39
commit 62d2e4276bae36212bfcab3b7ab07e84cff69b39
Author: Priyank <[EMAIL PROTECTED]>
Date: Sat Jan 19 00:59:58 2008 +0530
gfpm-db: parse /etc/pacman-g2.conf instead of /etc/pacman.conf
* Closes #2698
diff --git a/src/gfpm-db.c b/src/gfpm-db.c
index 77cb404..3cdf41a 100644
--- a/src/gfpm-db.c
+++ b/src/gfpm-db.c
@@ -19,7 +19,7 @@
*/
#define _GNU_SOURCE
-#define CFG_FILE "/etc/pacman.conf"
+#define CFG_FILE "/etc/pacman-g2.conf"
#include <pacman.h>
#include "gfpm-db.h"
@@ -95,7 +95,7 @@ gfpm_db_populate_repolist (void)
/* get the list of usable repositories */
if (pacman_parse_config (CFG_FILE, _db_callback, "") == -1)
{
- printf ("error parsing config file");
+ g_error ("error parsing config file");
return 1;
}
diff --git a/src/gfpm-progress.c b/src/gfpm-progress.c
index 09b6584..3b5820a 100644
--- a/src/gfpm-progress.c
+++ b/src/gfpm-progress.c
@@ -62,7 +62,7 @@ static void cb_gfpm_details_button_toggled (GtkWidget
*button, gpointer data);
void
gfpm_progress_init (void)
{
- pacman_parse_config ("/etc/pacman.conf", NULL, "");
+ pacman_parse_config ("/etc/pacman-g2.conf", NULL, "");
pacman_set_option (PM_OPT_DLCB, (long)gfpm_progress_update);
pacman_set_option (PM_OPT_DLOFFSET, (long)&offset);
pacman_set_option (PM_OPT_DLRATE, (long)&rate);
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git