Read pkgcache into hash
commitf8fdce6cb0da4d832ffa730e0dacb5544c1f8154
authorAllan McRae <allan@archlinux.org>
Tue, 25 Jan 2011 01:49:34 +0000 (25 11:49 +1000)
committerAllan McRae <allan@archlinux.org>
Thu, 3 Feb 2011 23:55:45 +0000 (4 09:55 +1000)
treeeeba547be38459b041b9fa8089f8171ba006ee19
parent5dae577a87795e7666f05613cf9aa7207fd17346
Read pkgcache into hash

Read the package information for sync/local databases into a pmpkghash_t
structure.

Provide a alpm_db_get_pkgcache_list() method that returns the list from
the hash object.  Most usages of alpm_db_get_pkgcache are converted to
this at this stage for ease of implementation.  Review whether these are
better accessing the hash table directly at a later stage.

Signed-off-by: Allan McRae <allan@archlinux.org>
16 files changed:
lib/libalpm/alpm.h
lib/libalpm/be_local.c
lib/libalpm/be_sync.c
lib/libalpm/conflict.c
lib/libalpm/db.c
lib/libalpm/db.h
lib/libalpm/deps.c
lib/libalpm/package.c
lib/libalpm/remove.c
lib/libalpm/sync.c
src/pacman/deptest.c
src/pacman/query.c
src/pacman/sync.c
src/util/cleanupdelta.c
src/util/pactree.c
src/util/testdb.c