Commit bb77b012 authored by Timo Teräs's avatar Timo Teräs
Browse files

index: root is needed for signing keys

so initialize db with a root, but avoid loading state or
repositories.
parent a602c49b
......@@ -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));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment