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

Vijay Kumar Banerjee vijay at rtems.org
Wed Mar 10 18:23:54 UTC 2021


Module:    rtems-source-builder
Branch:    master
Commit:    2f9a68bfb13313456034932a08c6d06ebbf151b3
Changeset: http://git.rtems.org/rtems-source-builder/commit/?id=2f9a68bfb13313456034932a08c6d06ebbf151b3

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

sb/config.py: Fix relational operator

Close #4319

---

 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 cd0bf94..d3ba6cd 100644
--- a/source-builder/sb/config.py
+++ b/source-builder/sb/config.py
@@ -989,7 +989,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