[rtems-source-builder commit] sb/config.py: Fix relational operator

Vijay Kumar Banerjee vijay at rtems.org
Wed Mar 10 18:49:32 UTC 2021


Module:    rtems-source-builder
Branch:    5
Commit:    d638f2b9a0a1f19d45529c7f4a85135432fe8bb2
Changeset: http://git.rtems.org/rtems-source-builder/commit/?id=d638f2b9a0a1f19d45529c7f4a85135432fe8bb2

Author:    Vijay Kumar Banerjee <vijay at rtems.org>
Date:      Tue Mar  9 11:10:21 2021 -0700

sb/config.py: Fix relational operator

Close #4330

---

 source-builder/sb/config.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source-builder/sb/config.py b/source-builder/sb/config.py
index afcac84..04e0834 100644
--- a/source-builder/sb/config.py
+++ b/source-builder/sb/config.py
@@ -978,7 +978,7 @@ class file:
                     else:
                         self._error('invalid if bool operator: ' + reduce(add, ls, ''))
             else:
-                if len(ifls) > 3:
+                if len(ifls) >= 3:
                     for op in ['==', '!=', '>=', '=>', '=<', '<=', '>', '<']:
                         ops = s.split(op)
                         if len(ops) == 2:



More information about the vc mailing list