diff options
author | Timo Teräs <timo.teras@iki.fi> | 2010-06-01 11:49:32 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2010-06-01 11:49:32 +0300 |
commit | 038b672061919296b68b83a1ccead9c31b650c6c (patch) | |
tree | 277f16e61f937139d61e36b2d7b468ddbb87f536 /src/apk_state.h | |
parent | 2165547badcc26be1a0fcb2944f11c0bfea25d8a (diff) | |
download | apk-tools-038b672061919296b68b83a1ccead9c31b650c6c.tar.gz apk-tools-038b672061919296b68b83a1ccead9c31b650c6c.tar.bz2 apk-tools-038b672061919296b68b83a1ccead9c31b650c6c.tar.xz apk-tools-038b672061919296b68b83a1ccead9c31b650c6c.zip |
state: improve error messages from dependency failures
Print more information why installation changeset calculation failed.
Fixes #187.
Diffstat (limited to 'src/apk_state.h')
-rw-r--r-- | src/apk_state.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/apk_state.h b/src/apk_state.h index 72c02b9..a862cdf 100644 --- a/src/apk_state.h +++ b/src/apk_state.h @@ -26,6 +26,7 @@ struct apk_state { unsigned int refs, num_names; struct apk_database *db; struct list_head change_list_head; + struct apk_package_array *conflicts; apk_name_state_t name[]; }; @@ -33,6 +34,7 @@ struct apk_state *apk_state_new(struct apk_database *db); struct apk_state *apk_state_dup(struct apk_state *state); void apk_state_unref(struct apk_state *state); +void apk_state_print_errors(struct apk_state *state); int apk_state_commit(struct apk_state *state, struct apk_database *db); int apk_state_lock_dependency(struct apk_state *state, struct apk_dependency *dep); |