From b0921ebac5184be14bac6548b9d91afb721da9a8 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 21 Apr 2009 11:39:16 +0000 Subject: info: do not read the repositories as this tool only query the statedb This allows you to query the state db even if you do not have write permissions in cache dir (which is needed if you have remote repositories) This should speed up things and save some memory if you have big and slow remote repositories. --- src/info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/info.c') diff --git a/src/info.c b/src/info.c index 7a4c519..5dd0e30 100644 --- a/src/info.c +++ b/src/info.c @@ -228,7 +228,7 @@ static int info_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_REPOS) < 0) return -1; if (ictx->action != NULL) -- cgit v1.2.3-60-g2f50