diff options
author | Timo Teräs <timo.teras@iki.fi> | 2017-11-28 14:25:38 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-11-28 14:25:38 +0000 |
commit | 97d8aab0c2e53ee82589a591637028294a6ab449 (patch) | |
tree | 5ef20142c471314df7f1cd78973ce71c6b0d077a /src/fetch.c | |
parent | 20ae27c1daec1e6efd19d74a2116c6a1f65e02ec (diff) | |
download | apk-tools-97d8aab0c2e53ee82589a591637028294a6ab449.tar.gz apk-tools-97d8aab0c2e53ee82589a591637028294a6ab449.tar.bz2 apk-tools-97d8aab0c2e53ee82589a591637028294a6ab449.tar.xz apk-tools-97d8aab0c2e53ee82589a591637028294a6ab449.zip |
fetch: print additional error diagnostics in verbose mode
Diffstat (limited to 'src/fetch.c')
-rw-r--r-- | src/fetch.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/fetch.c b/src/fetch.c index bb2efa9..c6622e5 100644 --- a/src/fetch.c +++ b/src/fetch.c @@ -242,12 +242,15 @@ static void mark_name_recursive(struct apk_database *db, const char *match, stru apk_dependency_array_init(&world); *apk_dependency_array_add(&world) = dep; r = apk_solver_solve(db, 0, world, &changeset); - apk_dependency_array_free(&world); if (r == 0) { foreach_array_item(change, changeset.changes) mark_package(ctx, change->new_pkg); - } else + } else { mark_error(ctx, match, name); + if (apk_verbosity > 1) + apk_solver_print_errors(db, &changeset, world); + } + apk_dependency_array_free(&world); apk_change_array_free(&changeset.changes); } |