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/ver.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/ver.c')
-rw-r--r-- | src/ver.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -43,7 +43,7 @@ static int ver_main(void *ctx, int argc, char **argv) return 0; } - if (apk_db_open(&db, apk_root) < 0) + if (apk_db_open(&db, apk_root, APK_OPENF_READ) < 0) return -1; list_for_each_entry(pkg, &db.installed.packages, installed_pkgs_list) { |