summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2011-07-24 14:24:58 +0300
committerTimo Teräs <timo.teras@iki.fi>2011-07-24 14:24:58 +0300
commit04950974bf56bde409a29390f4a794f8f283f12d (patch)
tree650617e8f35f2859077d5de27c0ceb2d41a038e9 /src
parent6b24f3c3998a66b0e5baa4de89ed66f2b8688404 (diff)
downloadapk-tools-04950974bf56bde409a29390f4a794f8f283f12d.tar.gz
apk-tools-04950974bf56bde409a29390f4a794f8f283f12d.tar.bz2
apk-tools-04950974bf56bde409a29390f4a794f8f283f12d.tar.xz
apk-tools-04950974bf56bde409a29390f4a794f8f283f12d.zip
ver: database is not needed for version string checking and tests
Diffstat (limited to 'src')
-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;