diff options
author | Allan McRae <allan@archlinux.org> | 2010-10-09 20:16:15 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2010-10-14 13:17:39 +1000 |
commit | fc32faaa6ab4081e2046b2a81e4f9949af2f7282 (patch) | |
tree | b800c442e7ec22e2a3f96dd8f56212ee1d5300c1 /lib/libalpm/add.c | |
parent | 5b2de3d8ecceea0eed3124e50792400adce4e95a (diff) | |
download | pacman-fc32faaa6ab4081e2046b2a81e4f9949af2f7282.tar.xz |
Completely separate local and sync db handling
Put the db_operations struct to use and completely split the handling
of the sync and local databases.
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/add.c')
-rw-r--r-- | lib/libalpm/add.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c index 3e5e8c59..2b6b019b 100644 --- a/lib/libalpm/add.c +++ b/lib/libalpm/add.c @@ -497,7 +497,7 @@ static int commit_single_pkg(pmpkg_t *newpkg, int pkg_current, int pkg_count, oldpkg = _alpm_pkg_dup(local); /* make sure all infos are loaded because the database entry * will be removed soon */ - _alpm_db_read(oldpkg->origin_data.db, oldpkg, INFRQ_ALL); + _alpm_local_db_read(oldpkg->origin_data.db, oldpkg, INFRQ_ALL); EVENT(trans, PM_TRANS_EVT_UPGRADE_START, newpkg, oldpkg); _alpm_log(PM_LOG_DEBUG, "upgrading package %s-%s\n", |