mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-18 06:03:42 +03:00
analyze: show Requisite dependencies in the dot graph again
We lost them a long time ago with commit 048ecf5b843.
This commit is contained in:
parent
7152869f0a
commit
8901b40502
@ -1066,14 +1066,17 @@ 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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user