summaryrefslogtreecommitdiff
path: root/lib/libalpm/db.c
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2010-10-09 20:16:15 +1000
committerAllan McRae <allan@archlinux.org>2010-10-14 13:17:39 +1000
commitfc32faaa6ab4081e2046b2a81e4f9949af2f7282 (patch)
treeb800c442e7ec22e2a3f96dd8f56212ee1d5300c1 /lib/libalpm/db.c
parent5b2de3d8ecceea0eed3124e50792400adce4e95a (diff)
downloadpacman-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/db.c')
-rw-r--r--lib/libalpm/db.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c
index 68e9ba7b..2e6bf31b 100644
--- a/lib/libalpm/db.c
+++ b/lib/libalpm/db.c
@@ -43,12 +43,6 @@
#include "package.h"
#include "group.h"
-
-struct db_operations default_db_ops = {
- .populate = _alpm_db_populate,
- .unregister = _alpm_db_unregister,
-};
-
/** \addtogroup alpm_databases Database Functions
* @brief Functions to query and manipulate the database of libalpm
* @{
@@ -353,7 +347,7 @@ int SYMEXPORT alpm_db_set_pkgreason(pmdb_t *db, const char *name, pmpkgreason_t
_alpm_log(PM_LOG_DEBUG, "setting install reason %u for %s/%s\n", reason, db->treename, name);
/* read DESC */
- if(_alpm_db_read(db, pkg, INFRQ_DESC)) {
+ if(_alpm_local_db_read(db, pkg, INFRQ_DESC)) {
return(-1);
}
if(pkg->reason == reason) {