From 8980ae5f76286b13ce4ce0f23e2ae7fa5478c018 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Fri, 15 Mar 2013 19:20:35 -0500 Subject: [PATCH] main: --simulate: print depgraph operations --- main.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/main.c b/main.c index a569f0c..e72a0f9 100644 --- a/main.c +++ b/main.c @@ -407,10 +407,18 @@ apply_uninstalled(pkg_t *world, void *data, int maxdepth, unsigned int flags) static void print_graph_node(pkg_t *pkg, void *data, unsigned int flags) { + pkg_node_t *n; + (void) data; (void) flags; printf("Considering graph node '%s' (%p)\n", pkg->id, pkg); + PKG_FOREACH_LIST_ENTRY(pkg->requires.head, n) + { + pkg_dependency_t *dep = n->data; + printf(" Dependency '%s' %s '%s' (%p)\n", dep->package, + pkg_get_comparator(dep), dep->version != NULL ? dep->version : "*", dep); + } } static bool