diff options
author | Aaron Griffin <aaron@archlinux.org> | 2006-10-19 17:28:52 +0200 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2006-10-19 17:28:52 +0200 |
commit | e7f886aac3991b6a12ede9781af741b402dffb64 (patch) | |
tree | 51b140034a50b92932c2b12d02daf4ad89850343 /src | |
parent | 39790dcc1851d4286c3713cbbc2752bdb7ed4c5b (diff) | |
download | pacman-e7f886aac3991b6a12ede9781af741b402dffb64.tar.gz pacman-e7f886aac3991b6a12ede9781af741b402dffb64.tar.xz |
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.c | 2 |
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); |