summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2006-10-19 15:28:52 +0000
committerAaron Griffin <aaron@archlinux.org>2006-10-19 15:28:52 +0000
commite7f886aac3991b6a12ede9781af741b402dffb64 (patch)
tree51b140034a50b92932c2b12d02daf4ad89850343 /src
parent39790dcc1851d4286c3713cbbc2752bdb7ed4c5b (diff)
From VMiklos <vmiklos@frugalware.org>
* 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 :)
Diffstat (limited to 'src')
-rw-r--r--src/pacman/sync.c2
1 files changed, 1 insertions, 1 deletions
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);