summaryrefslogtreecommitdiffstats
path: root/src/apk_state.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2010-06-01 11:49:32 +0300
committerTimo Teräs <timo.teras@iki.fi>2010-06-01 11:49:32 +0300
commit038b672061919296b68b83a1ccead9c31b650c6c (patch)
tree277f16e61f937139d61e36b2d7b468ddbb87f536 /src/apk_state.h
parent2165547badcc26be1a0fcb2944f11c0bfea25d8a (diff)
downloadapk-tools-038b672061919296b68b83a1ccead9c31b650c6c.tar.bz2
apk-tools-038b672061919296b68b83a1ccead9c31b650c6c.tar.xz
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.h2
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);