summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/cache.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2008-05-12 02:29:23 +0200
committerDan McGee <dan@archlinux.org>2008-05-12 03:05:59 +0200
commit046003844739416ff6d168dd2dec76490adb0727 (patch)
treec28da11a0799626df087232dd46be7103c81be3e /lib/libalpm/cache.c
parent3c3cb001a441656c2afba62f0361b83d4987339c (diff)
downloadpacman-046003844739416ff6d168dd2dec76490adb0727.tar.gz
pacman-046003844739416ff6d168dd2dec76490adb0727.tar.xz
Remove some useless abstraction and start db cleanup
We have some useless abstractions like an alpm_db_rewind function. I've read somewhere that readdir() was the worst filesystem function call invented, and what do we do? Add a wrapper around it. Kill this abstraction and move some other things into be_files that should be there anyway because they are so tied to how a files backend works. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/cache.c')
-rw-r--r--lib/libalpm/cache.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/libalpm/cache.c b/lib/libalpm/cache.c
index bfc4fd9e..fcd555e9 100644
--- a/lib/libalpm/cache.c
+++ b/lib/libalpm/cache.c
@@ -54,7 +54,6 @@ int _alpm_db_load_pkgcache(pmdb_t *db)
_alpm_log(PM_LOG_DEBUG, "loading package cache for repository '%s'\n",
db->treename);
- _alpm_db_rewind(db);
while((info = _alpm_db_scan(db, NULL)) != NULL) {
_alpm_log(PM_LOG_FUNCTION, "adding '%s' to package cache for db '%s'\n",
alpm_pkg_get_name(info), db->treename);