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:
Abdo Roig-Maranges 2015-06-23 11:13:13 +02:00
parent 82627069e9
commit 084918ba41
1 changed files with 1 additions and 1 deletions

View File

@ -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,