Git-Url:
http://git.frugalware.org/gitweb/gitweb.cgi?p=gfpm.git;a=commitdiff;h=585b485302f552878c89a087357febdaf9c5a6ec
commit 585b485302f552878c89a087357febdaf9c5a6ec
Author: Priyank <[EMAIL PROTECTED]>
Date: Wed Mar 26 20:23:21 2008 +0530
gfpm-interface: synchronize _ALL_ repos and not only the currently active repo
when "Synchronize" button is clicked
diff --git a/src/gfpm-interface.c b/src/gfpm-interface.c
index ed90c27..5a1458c 100644
--- a/src/gfpm-interface.c
+++ b/src/gfpm-interface.c
@@ -1215,12 +1215,19 @@ static void
cb_gfpm_refresh_button_clicked (GtkButton *button, gpointer data)
{
gint ret;
+ GList *dbs = NULL;
PM_LIST *packages;
gchar *updatestr = NULL;
gfpm_progress_set_main_text (_("Synchronizing package databases"), 1);
gfpm_progress_show (TRUE);
- ret = pacman_db_update (0, sync_db);
+ dbs = gfpm_db_get_repolist ();
+ while (dbs != NULL)
+ {
+ PM_DB *tdb = dbs->data;
+ ret = pacman_db_update (0, tdb);
+ dbs = g_list_next (dbs);
+ }
gfpm_progress_show (FALSE);
/* check for a pacman-g2 update */
if (gfpm_check_if_package_updatable ("pacman-g2"))
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git