From 046003844739416ff6d168dd2dec76490adb0727 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 11 May 2008 19:29:23 -0500 Subject: 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 --- lib/libalpm/cache.c | 1 - 1 file changed, 1 deletion(-) (limited to 'lib/libalpm/cache.c') 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); -- cgit v1.2.3-54-g00ecf