Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=gfpm.git;a=commitdiff;h=2b5bad38b646517bf669ed6595b9ea284d59673d

commit 2b5bad38b646517bf669ed6595b9ea284d59673d
Author: Priyank <priy...@frugalware.org>
Date:   Mon Jun 8 22:11:47 2009 +0530

gfpm_interface_init(): local database should always be initialized irrsepective 
of the arguments

diff --git a/src/gfpm-interface.c b/src/gfpm-interface.c
index 978f72e..9f0a84e 100644
--- a/src/gfpm-interface.c
+++ b/src/gfpm-interface.c
@@ -509,12 +509,6 @@ gfpm_interface_init (ARGS arg, void* argdata)
/* init repomanager only if gfpm is run as root user */
gfpm_repomanager_init ();
}
-
-               /* initialize modules */
-               if (gfpm_db_init())
-               {
-                       gfpm_error (_("Error"), _("Failed to initialize local 
package database."));
-               }

/* optimize database dialog */
gfpm_optimize_db_dlg_init ();
@@ -531,6 +525,11 @@ gfpm_interface_init (ARGS arg, void* argdata)
_gfpm_misc_widgets_init ();
}

+       /* initialize modules */
+       if (gfpm_db_init())
+       {
+               gfpm_error (_("Error"), _("Failed to initialize local package 
database."));
+       }
gfpm_messages_init ();
gfpm_progress_init ();
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to