Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);