diff options
Diffstat (limited to 'src/app_upgrade.c')
-rw-r--r-- | src/app_upgrade.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/app_upgrade.c b/src/app_upgrade.c index 6d63b50..3edd0b1 100644 --- a/src/app_upgrade.c +++ b/src/app_upgrade.c @@ -153,9 +153,10 @@ static void set_upgrade_for_name(struct apk_database *db, const char *match, str apk_solver_set_name_flags(name, uctx->ignore ? APK_SOLVERF_INSTALLED : APK_SOLVERF_UPGRADE, 0); } -static int upgrade_main(void *ctx, struct apk_database *db, struct apk_string_array *args) +static int upgrade_main(void *ctx, struct apk_ctx *ac, struct apk_string_array *args) { - struct apk_out *out = &db->ctx->out; + struct apk_out *out = &ac->out; + struct apk_database *db = ac->db; struct upgrade_ctx *uctx = (struct upgrade_ctx *) ctx; unsigned short solver_flags; struct apk_dependency *dep; |