waf/wafadmin/3rdparty: fix paranoid.py variable names
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 9 Mar 2017 01:56:24 +0000 (14:56 +1300)
committerDouglas Bagnall <dbagnall@samba.org>
Fri, 23 Jun 2017 00:25:25 +0000 (02:25 +0200)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
third_party/waf/wafadmin/3rdparty/paranoid.py

index ba6d752..13dfb68 100644 (file)
@@ -21,9 +21,9 @@ say('you make the errors, we detect them')
 def check_task_classes(self):
        for x in Task.TaskBase.classes:
                if isinstance(x, Task.Task):
-                       if not getattr(cls, 'ext_in', None) or getattr(cls, 'before', None):
+                       if not getattr(x, 'ext_in', None) or getattr(x, 'before', None):
                                say('class %s has no precedence constraints (ext_in/before)')
-                       if not getattr(cls, 'ext_out', None) or getattr(cls, 'after', None):
+                       if not getattr(x, 'ext_out', None) or getattr(x, 'after', None):
                                say('class %s has no precedence constraints (ext_out/after)')
 
 comp = Build.BuildContext.compile