summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-04-21 11:37:48 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-04-21 11:37:48 +0000
commit0dfbee9537c0eb93b92aeb0535062f9272afbc73 (patch)
treeb7d4c0473ee924912e9e7677556eb96a7c596d67
parent9e70b1c9c70b4853106a03307ab352258bfd34c7 (diff)
downloadapk-tools-0dfbee9537c0eb93b92aeb0535062f9272afbc73.tar.gz
apk-tools-0dfbee9537c0eb93b92aeb0535062f9272afbc73.tar.bz2
apk-tools-0dfbee9537c0eb93b92aeb0535062f9272afbc73.tar.xz
apk-tools-0dfbee9537c0eb93b92aeb0535062f9272afbc73.zip
search: do not read the state db as this tool only query repos
This should be slightly faster and comsume less memory in theory
-rw-r--r--src/search.c2
1 files changed, 1 insertions, 1 deletions
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)