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/index.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/index.c') diff --git a/src/index.c b/src/index.c index c272b74..08fc342 100644 --- a/src/index.c +++ b/src/index.c @@ -44,7 +44,7 @@ static int index_main(void *ctx, int argc, char **argv) struct apk_ostream *os; int total, i; - apk_db_open(&db, NULL); + apk_db_open(&db, NULL, APK_OPENF_READ); for (i = 0; i < argc; i++) apk_db_pkg_add_file(&db, argv[i]); -- cgit v1.2.3-60-g2f50