Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=setup.git;a=commitdiff;h=43407db70d2cd764ae506ee7ed92aa90c6ad90fb

commit 43407db70d2cd764ae506ee7ed92aa90c6ad90fb
Author: VMiklos <[EMAIL PROTECTED]>
Date:   Sun Sep 23 15:27:39 2007 +0200

select/prepare_pkgdb(): force database update
- in fact the database is almost never up to date in the setup
- sometimes the up2date check may fail so that the db would not be downloaded.
workaround this

diff --git a/src/plugins/select.c b/src/plugins/select.c
index a81f48f..bd1bd01 100644
--- a/src/plugins/select.c
+++ b/src/plugins/select.c
@@ -356,7 +356,7 @@ int prepare_pkgdb(char *repo, GList **config, GList **syncs)
else
{
LOG("updating the database");
-                               ret = pacman_db_update(0, mydatabase);
+                               ret = pacman_db_update(1, mydatabase);
if(ret == 0) {
LOG("database update done");
}
@@ -371,8 +371,6 @@ int prepare_pkgdb(char *repo, GList **config, GList **syncs)
dialog_msgbox(_("Error"), g_strdup_printf(_("Failed to update %s (%s)"), 
PACCONF, pacman_strerror(pm_errno)), 0, 0, 1);
return(-1);
}
-                               } else if (ret == 1) {
-                                       LOG("the database is to up date");
}
}
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to