summaryrefslogtreecommitdiff
path: root/src/analyze
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2015-11-13 14:30:07 +0100
committerMichal Schmidt <mschmidt@redhat.com>2015-11-13 14:32:59 +0100
commit8901b40502670d1d153f92294ae93245f608adc8 (patch)
treec41e26cb296876fa9ba635b6d8e368ce638c9505 /src/analyze
parent7152869f0a4a4612022244064cc2b3905b1e3fc7 (diff)
analyze: show Requisite dependencies in the dot graph again
We lost them a long time ago with commit 048ecf5b843.
Diffstat (limited to 'src/analyze')
-rw-r--r--src/analyze/analyze.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c
index b7e45dcfd6..1fc7c9581b 100644
--- a/src/analyze/analyze.c
+++ b/src/analyze/analyze.c
@@ -1066,16 +1066,19 @@ static int graph_one(sd_bus *bus, const UnitInfo *u, char *patterns[], char *fro
assert(bus);
assert(u);
- if (arg_dot == DEP_ORDER ||arg_dot == DEP_ALL) {
+ if (IN_SET(arg_dot, DEP_ORDER, DEP_ALL)) {
r = graph_one_property(bus, u, "After", "green", patterns, from_patterns, to_patterns);
if (r < 0)
return r;
}
- if (arg_dot == DEP_REQUIRE ||arg_dot == DEP_ALL) {
+ if (IN_SET(arg_dot, DEP_REQUIRE, DEP_ALL)) {
r = graph_one_property(bus, u, "Requires", "black", patterns, from_patterns, to_patterns);
if (r < 0)
return r;
+ r = graph_one_property(bus, u, "Requisite", "darkblue", patterns, from_patterns, to_patterns);
+ if (r < 0)
+ return r;
r = graph_one_property(bus, u, "Wants", "grey66", patterns, from_patterns, to_patterns);
if (r < 0)
return r;