main: --simulate: print depgraph operations

pull/48/head
William Pitcock 2013-03-15 19:20:35 -05:00
parent 129030c282
commit 8980ae5f76
1 changed files with 8 additions and 0 deletions

8
main.c
View File

@ -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