summaryrefslogtreecommitdiff
path: root/src
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>2011-12-24 15:52:35 +0200
commit415e41a072231e5724c41dec0f2905af25fff821 (patch)
tree2112a92aea004855becbf3ec6f1b322206d09b13 /src
parentd80536b750efb7a43ad6222a684b12bc5160729e (diff)
downloadapk-tools-415e41a072231e5724c41dec0f2905af25fff821.tar.gz
apk-tools-415e41a072231e5724c41dec0f2905af25fff821.tar.bz2
apk-tools-415e41a072231e5724c41dec0f2905af25fff821.tar.xz
apk-tools-415e41a072231e5724c41dec0f2905af25fff821.zip
info: -e and -W operate on database only (repos not needed)
.. so do not load them.
Diffstat (limited to 'src')
-rw-r--r--src/info.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/info.c b/src/info.c
index b90fa1a..9135a33 100644
--- a/src/info.c
+++ b/src/info.c
@@ -391,9 +391,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;