mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-20 14:03:39 +03:00
Merge pull request #1881 from michich/analyze-dot
analyze: dot graph missing Requisite, superfluous ConflictedBy
This commit is contained in:
commit
b39e074c27
@ -1066,14 +1066,17 @@ static int graph_one(sd_bus *bus, const UnitInfo *u, char *patterns[], char *fro
|
|||||||
assert(bus);
|
assert(bus);
|
||||||
assert(u);
|
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);
|
r = graph_one_property(bus, u, "After", "green", patterns, from_patterns, to_patterns);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return r;
|
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);
|
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)
|
if (r < 0)
|
||||||
return r;
|
return r;
|
||||||
r = graph_one_property(bus, u, "Wants", "grey66", patterns, from_patterns, to_patterns);
|
r = graph_one_property(bus, u, "Wants", "grey66", patterns, from_patterns, to_patterns);
|
||||||
@ -1082,9 +1085,6 @@ static int graph_one(sd_bus *bus, const UnitInfo *u, char *patterns[], char *fro
|
|||||||
r = graph_one_property(bus, u, "Conflicts", "red", patterns, from_patterns, to_patterns);
|
r = graph_one_property(bus, u, "Conflicts", "red", patterns, from_patterns, to_patterns);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return r;
|
return r;
|
||||||
r = graph_one_property(bus, u, "ConflictedBy", "red", patterns, from_patterns, to_patterns);
|
|
||||||
if (r < 0)
|
|
||||||
return r;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user