core: fix reversed dependency check in unit_check_unneeded
This was introduced by commit be7d9ff730
and breaks
StopWhenUnneeded=true in the presence of a Requisite dependency.
This commit is contained in:
parent
82627069e9
commit
084918ba41
|
@ -1596,7 +1596,7 @@ static void unit_check_unneeded(Unit *u) {
|
|||
static const UnitDependency needed_dependencies[] = {
|
||||
UNIT_REQUIRED_BY,
|
||||
UNIT_REQUIRED_BY_OVERRIDABLE,
|
||||
UNIT_REQUISITE,
|
||||
UNIT_REQUISITE_OF,
|
||||
UNIT_REQUISITE_OF_OVERRIDABLE,
|
||||
UNIT_WANTED_BY,
|
||||
UNIT_BOUND_BY,
|
||||
|
|
Loading…
Reference in New Issue