From bd56e810b226a4208df1b9ba10b0ce648de26e34 Mon Sep 17 00:00:00 2001 From: Anders Ingemann Date: Mon, 7 Apr 2014 21:50:06 +0200 Subject: [PATCH] Fix check_ordering of succ. (it always succeeded) --- bootstrapvz/base/tasklist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrapvz/base/tasklist.py b/bootstrapvz/base/tasklist.py index db83d11..776939d 100644 --- a/bootstrapvz/base/tasklist.py +++ b/bootstrapvz/base/tasklist.py @@ -166,7 +166,7 @@ class TaskList(object): for successor in task.successors: # Run through all successors and check whether the phase of the task # comes before the phase of a successor - if successor.phase > successor.phase: + if task.phase > successor.phase: msg = ("The task {task} is specified as running before {other}, " "but its phase '{phase}' lies after the phase '{other_phase}'" .format(task=task, other=successor, phase=task.phase, other_phase=successor.phase))