From bb77b01244d42ef669212fc1d3cf11590135fc12 Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Wed, 5 Aug 2009 09:28:25 +0300 Subject: index: root is needed for signing keys so initialize db with a root, but avoid loading state or repositories. --- src/index.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.c b/src/index.c index 4ef8aefd80..d9cecfec94 100644 --- a/src/index.c +++ b/src/index.c @@ -99,7 +99,7 @@ static int index_main(void *ctx, int argc, char **argv) if (ictx->method == 0) ictx->method = APK_SIGN_GENERATE; - apk_db_open(&db, NULL, APK_OPENF_READ); + apk_db_open(&db, apk_root, APK_OPENF_READ | APK_OPENF_NO_STATE | APK_OPENF_NO_REPOS); if ((r = index_read_file(&db, ictx)) < 0) { apk_db_close(&db); apk_error("%s: %s", ictx->index, apk_error_str(r)); -- cgit v1.2.3