summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2011-12-24 15:52:35 +0200
committerTimo Teräs <timo.teras@iki.fi>2012-02-01 10:05:09 +0200
commit4148f9ce43cfd62b957b0c8ca9c77eff19348e42 (patch)
tree7d53ded926beb197593232dbf49a68ab53c9a4c5
parent04950974bf56bde409a29390f4a794f8f283f12d (diff)
downloadapk-tools-4148f9ce43cfd62b957b0c8ca9c77eff19348e42.tar.gz
apk-tools-4148f9ce43cfd62b957b0c8ca9c77eff19348e42.tar.bz2
apk-tools-4148f9ce43cfd62b957b0c8ca9c77eff19348e42.tar.xz
apk-tools-4148f9ce43cfd62b957b0c8ca9c77eff19348e42.zip
info: -e and -W operate on database only (repos not needed)
.. so do not load them. (cherry picked from commit 415e41a072231e5724c41dec0f2905af25fff821)
-rw-r--r--src/info.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/info.c b/src/info.c
index 3ae51f0..090110f 100644
--- a/src/info.c
+++ b/src/info.c
@@ -368,9 +368,11 @@ static int info_parse(void *ctx, struct apk_db_options *dbopts,
switch (optch) {
case 'e':
ictx->action = info_exists;
+ dbopts->open_flags |= APK_OPENF_NO_REPOS;
break;
case 'W':
ictx->action = info_who_owns;
+ dbopts->open_flags |= APK_OPENF_NO_REPOS;
break;
case 'w':
ictx->subaction_mask |= APK_INFO_URL;