Change-Id: Ia31f79cf645d9acae6c5f300b45ec8140a1bcd4a
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
int ret = -1;
if (a->AfterContains(b->GetAppId()) ||
a->RequiresContains(b->GetAppId()))
- ret = 1;
+ ret = 0;
if (b->AfterContains(a->GetAppId()) ||
b->RequiresContains(a->GetAppId())) {
if (ret == -1) {
- ret = 0;
+ ret = 1;
} else {
_E("Circular dependencies");
ret = -1;
}
if (ret == -1)
- ret = a->GetPriority() > b->GetPriority() ? 0 : 1;
+ ret = a->GetPriority() > b->GetPriority() ? 1 : 0;
_W("%s : %s : %d", a->GetAppId().c_str(), b->GetAppId().c_str(), ret);
return ret == 1 ? true : false;