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

Chris Johns chrisj at rtems.org
Wed Mar 10 17:53:11 UTC 2021


Nice find and thanks. OK to push.

I think this should also be applied to the 5 branch.

Chris

On 10/3/21 5:32 am, Vijay Kumar Banerjee wrote:
> 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 devel mailing list