From e7f886aac3991b6a12ede9781af741b402dffb64 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Thu, 19 Oct 2006 15:28:52 +0000 Subject: From VMiklos * alpm_db_update() fix up the level parameter till now when it was "1", it meant false, which was not in sync with the C logic :) --- src/pacman/sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/pacman/sync.c b/src/pacman/sync.c index e3262c28..07cd3699 100644 --- a/src/pacman/sync.c +++ b/src/pacman/sync.c @@ -161,7 +161,7 @@ static int sync_synctree(int level, list_t *syncs) for(i = syncs; i; i = i->next) { sync_t *sync = (sync_t *)i->data; - ret = alpm_db_update(level, sync->db); + ret = alpm_db_update((level < 2 ? 0 : 1), sync->db); if(ret > 0) { if(pm_errno == PM_ERR_DB_SYNC) { ERR(NL, _("failed to synchronize %s\n"), sync->treename); -- cgit v1.2.3-54-g00ecf