Commit 0dfbee95 authored by Natanael Copa's avatar Natanael Copa

search: do not read the state db as this tool only query repos

This should be slightly faster and comsume less memory in theory
parent 9e70b1c9
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment