[PATCH RSB] sb/config.py: Fix relational operator

Vijay Kumar Banerjee vijay at rtems.org
Tue Mar 9 18:32:30 UTC 2021


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:
-- 
2.26.2



More information about the devel mailing list