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/app_fix.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/app_fix.c')
-rw-r--r-- | src/app_fix.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/app_fix.c b/src/app_fix.c index ccd1e3c..311cfdd 100644 --- a/src/app_fix.c +++ b/src/app_fix.c @@ -31,7 +31,7 @@ struct fix_ctx { APK_OPT_APPLET(option_desc, FIX_OPTIONS); -static int option_parse_applet(void *pctx, struct apk_db_options *dbopts, int opt, const char *optarg) +static int option_parse_applet(void *pctx, struct apk_ctx *ac, int opt, const char *optarg) { struct fix_ctx *ctx = (struct fix_ctx *) pctx; switch (opt) { @@ -76,10 +76,11 @@ static void mark_fix(struct fix_ctx *ctx, struct apk_name *name) static void set_solver_flags(struct apk_database *db, const char *match, struct apk_name *name, void *pctx) { + struct apk_out *out = &db->ctx->out; struct fix_ctx *ctx = pctx; if (!name) { - apk_error("Package '%s' not found", match); + apk_err(out, "Package '%s' not found", match); ctx->errors++; } else mark_fix(ctx, name); |