diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-01-17 11:07:56 +0200 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-01-17 11:08:48 +0200 |
commit | a98b57b1ae6f9fb04ddcc6876451632d519a0081 (patch) | |
tree | acafb1cf2dd44fbbab363fc714582da5b9e21c62 /src/index.c | |
parent | 24b424a4580555579b11ab1d66ee3dab7751dfb5 (diff) | |
download | apk-tools-a98b57b1ae6f9fb04ddcc6876451632d519a0081.tar.gz apk-tools-a98b57b1ae6f9fb04ddcc6876451632d519a0081.tar.bz2 apk-tools-a98b57b1ae6f9fb04ddcc6876451632d519a0081.tar.xz apk-tools-a98b57b1ae6f9fb04ddcc6876451632d519a0081.zip |
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.
Diffstat (limited to 'src/index.c')
-rw-r--r-- | src/index.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]); |