diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-04-21 11:37:48 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-04-21 11:37:48 +0000 |
commit | 0dfbee9537c0eb93b92aeb0535062f9272afbc73 (patch) | |
tree | b7d4c0473ee924912e9e7677556eb96a7c596d67 /src/search.c | |
parent | 9e70b1c9c70b4853106a03307ab352258bfd34c7 (diff) | |
download | apk-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
Diffstat (limited to 'src/search.c')
-rw-r--r-- | src/search.c | 2 |
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) |