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

This should be slightly faster and comsume less memory in theory
cute-signatures
Natanael Copa 2009-04-21 11:37:48 +00:00
parent 9e70b1c9c7
commit 0dfbee9537
1 changed files with 1 additions and 1 deletions

View File

@ -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)