diff options
author | Timo Teräs <timo.teras@iki.fi> | 2020-10-05 18:52:51 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2020-10-09 16:09:19 +0300 |
commit | 354713d2f746c197eed6a1feb4c6af3420af6c15 (patch) | |
tree | f9dd51bbdde0f25f8e122832cf006076b8452d28 /src/lua-apk.c | |
parent | 7a7eca86709fcf31dbb1acf8b82ff411828fb67b (diff) | |
download | apk-tools-354713d2f746c197eed6a1feb4c6af3420af6c15.tar.gz apk-tools-354713d2f746c197eed6a1feb4c6af3420af6c15.tar.bz2 apk-tools-354713d2f746c197eed6a1feb4c6af3420af6c15.tar.xz apk-tools-354713d2f746c197eed6a1feb4c6af3420af6c15.zip |
rename apk_db_options to apk_ctx, rework logging
makes apk_verbosity non-global
fixes #10682
Diffstat (limited to 'src/lua-apk.c')
-rw-r--r-- | src/lua-apk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lua-apk.c b/src/lua-apk.c index 6cd0208..10d34eb 100644 --- a/src/lua-apk.c +++ b/src/lua-apk.c @@ -140,7 +140,7 @@ static int get_boolean_field(lua_State *L, int index, const char *key) return value; } -static int get_dbopts(lua_State *L, int i, struct apk_db_options *o) +static int get_ctx(lua_State *L, int i, struct apk_ctx *o) { struct flagmap *f; o->root = (char *)get_opt_string_field(L, i, "root", NULL); @@ -165,14 +165,14 @@ static struct apk_database *checkdb(lua_State *L, int index) static int Papk_db_open(lua_State *L) { - struct apk_db_options opts; + struct apk_ctx opts; struct apk_database *db; int r; memset(&opts, 0, sizeof(opts)); apk_string_array_init(&opts.repository_list); if (lua_istable(L, 1)) - get_dbopts(L, 1, &opts); + get_ctx(L, 1, &opts); else opts.open_flags |= APK_OPENF_READ; |