From 4db80314024159ec9bd546e75e1944045d289786 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Mon, 9 Oct 2023 07:06:29 +0000 Subject: [PATCH] cli: --digraph: properly visualize requires.private edges Signed-off-by: Ariadne Conill --- cli/main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cli/main.c b/cli/main.c index 73b6dcc..35ae480 100644 --- a/cli/main.c +++ b/cli/main.c @@ -267,6 +267,13 @@ print_digraph_node(pkgconf_client_t *client, pkgconf_pkg_t *pkg, void *unused) printf("\"%s\" -- \"%s\" [fontname=Sans fontsize=8]\n", dep->package, pkg->id); } + + PKGCONF_FOREACH_LIST_ENTRY(pkg->requires_private.head, node) + { + pkgconf_dependency_t *dep = node->data; + + printf("\"%s\" -- \"%s\" [fontname=Sans fontsize=8 color=gray]\n", dep->package, pkg->id); + } } static bool