diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-04-21 11:39:16 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-04-21 11:39:16 +0000 |
commit | b0921ebac5184be14bac6548b9d91afb721da9a8 (patch) | |
tree | 8d9e2b79afce0e2e663723c021c5e5843b8acaad /src/info.c | |
parent | 0dfbee9537c0eb93b92aeb0535062f9272afbc73 (diff) | |
download | apk-tools-b0921ebac5184be14bac6548b9d91afb721da9a8.tar.gz apk-tools-b0921ebac5184be14bac6548b9d91afb721da9a8.tar.bz2 apk-tools-b0921ebac5184be14bac6548b9d91afb721da9a8.tar.xz apk-tools-b0921ebac5184be14bac6548b9d91afb721da9a8.zip |
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.
Diffstat (limited to 'src/info.c')
-rw-r--r-- | src/info.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |