summaryrefslogtreecommitdiff
path: root/src/apk.c
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-03-06 19:22:01 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-06-11 07:02:18 +0000
commit36d1bfb4ed1fda9abf59a17d84acc1853a003e5d (patch)
tree12f1d2603bd3b30d1a28b0354f4d1087fa05e6bc /src/apk.c
parent7aed449427348824f7fbfc0e9dc698ea6519f91e (diff)
downloadapk-tools-36d1bfb4ed1fda9abf59a17d84acc1853a003e5d.tar.gz
apk-tools-36d1bfb4ed1fda9abf59a17d84acc1853a003e5d.tar.bz2
apk-tools-36d1bfb4ed1fda9abf59a17d84acc1853a003e5d.tar.xz
apk-tools-36d1bfb4ed1fda9abf59a17d84acc1853a003e5d.zip
db: make apk_wait a part of dbopts
Diffstat (limited to 'src/apk.c')
-rw-r--r--src/apk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/apk.c b/src/apk.c
index 8575f66..315fa8a 100644
--- a/src/apk.c
+++ b/src/apk.c
@@ -235,7 +235,7 @@ int main(int argc, char **argv)
struct apk_applet *applet;
char short_options[256], *sopt;
struct option *opt, *all_options;
- int r, optindex, num_options, apk_wait = 0;
+ int r, optindex, num_options;
void *ctx = NULL;
struct apk_repository_list *repo = NULL;
struct apk_database db;
@@ -328,7 +328,7 @@ int main(int argc, char **argv)
apk_flags |= APK_PURGE;
break;
case 0x105:
- apk_wait = atoi(optarg);
+ dbopts.lock_wait = atoi(optarg);
break;
case 0x109:
apk_flags |= APK_NO_NETWORK;
@@ -356,7 +356,7 @@ int main(int argc, char **argv)
argv++;
}
- r = apk_db_open(&db, &dbopts, apk_wait);
+ r = apk_db_open(&db, &dbopts);
if (r != 0) {
apk_error("Failed to open apk database: %s",
apk_error_str(r));