From a98b57b1ae6f9fb04ddcc6876451632d519a0081 Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Sat, 17 Jan 2009 11:07:56 +0200 Subject: db: database locking and creation to part of opening it Add flags field to db open call. Also make error reporting quite a bit more detailed. --- src/info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/info.c') diff --git a/src/info.c b/src/info.c index 1cde91d..8a87eee 100644 --- a/src/info.c +++ b/src/info.c @@ -111,7 +111,7 @@ static int info_main(void *ctx, int argc, char **argv) struct apk_database db; int r; - if (apk_db_open(&db, apk_root) < 0) + if (apk_db_open(&db, apk_root, APK_OPENF_READ) < 0) return -1; if (ictx->action != NULL) -- cgit v1.2.3-60-g2f50