From 415e41a072231e5724c41dec0f2905af25fff821 Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Sat, 24 Dec 2011 15:52:35 +0200 Subject: info: -e and -W operate on database only (repos not needed) .. so do not load them. --- src/info.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/info.c') 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; -- cgit v1.2.3-60-g2f50