summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ver.c b/src/ver.c
index 4d17123..93c8f34 100644
--- a/src/ver.c
+++ b/src/ver.c
@@ -75,9 +75,11 @@ static int ver_parse(void *ctx, struct apk_db_options *dbopts,
break;
case 't':
ictx->action = ver_test;
+ dbopts->open_flags |= APK_OPENF_NO_STATE | APK_OPENF_NO_REPOS;
break;
case 'c':
ictx->action = ver_validate;
+ dbopts->open_flags |= APK_OPENF_NO_STATE | APK_OPENF_NO_REPOS;
break;
case 'l':
ictx->limchars = optarg;