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

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


On Wed, Mar 10, 2021 at 10:53 AM Chris Johns <chrisj at rtems.org> wrote:
>
> Nice find and thanks. OK to push.
>
Pushed to master.

> I think this should also be applied to the 5 branch.
>
Do I need to make any changes in the ticket or file a new ticket
before pushing to 5?

> 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