search: do not read the state db as this tool only query repos
This should be slightly faster and comsume less memory in theorycute-signatures
parent
9e70b1c9c7
commit
0dfbee9537
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue