From 21833d90e26635fdd2c6af247790a9bf374b4d80 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Sat, 30 Oct 2010 15:35:43 +1000 Subject: Merge desc and depends files in local db Whenever depends is needed from the local db, so is desc. The only disadvantage to merging them is the additional time taken to read the depends entries when they are not needed. As depends is in general relatively small, the additional time taken to read it in will be negligable. Also, merging these files will speed up local database access due to less file seeks. Signed-off-by: Allan McRae Signed-off-by: Dan McGee --- lib/libalpm/be_package.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libalpm/be_package.c') diff --git a/lib/libalpm/be_package.c b/lib/libalpm/be_package.c index a0a657db..ae951945 100644 --- a/lib/libalpm/be_package.c +++ b/lib/libalpm/be_package.c @@ -362,7 +362,7 @@ static pmpkg_t *pkg_load(const char *pkgfile, int full) } else { /* get rid of any partial filelist we may have collected, it is invalid */ FREELIST(newpkg->files); - newpkg->infolevel = INFRQ_BASE | INFRQ_DESC | INFRQ_DEPENDS; + newpkg->infolevel = INFRQ_BASE | INFRQ_DESC; } return(newpkg); -- cgit v1.2.3-70-g09d2