From 0dfbee9537c0eb93b92aeb0535062f9272afbc73 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 21 Apr 2009 11:37:48 +0000 Subject: search: do not read the state db as this tool only query repos This should be slightly faster and comsume less memory in theory --- src/search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/search.c') diff --git a/src/search.c b/src/search.c index 208cff1..5cfca5a 100644 --- a/src/search.c +++ b/src/search.c @@ -119,7 +119,7 @@ static int search_main(void *ctx, int argc, char **argv) struct apk_database db; int r; - if (apk_db_open(&db, apk_root, APK_OPENF_READ) < 0) + if (apk_db_open(&db, apk_root, APK_OPENF_READ + APK_OPENF_EMPTY_STATE) < 0) return -1; if (ictx->action != NULL) -- cgit v1.2.3-60-g2f50