[Buildroot] [PATCH] utils/check-package: add a check for the separation in the hash files

Heiko Thiery heiko.thiery at gmail.com
Wed Feb 5 19:27:30 UTC 2020


Yann, All,

> The script now throwsa traceback:
>
>     $ make check-package
>     [lots of output...]
>     Traceback (most recent call last):
>       File "./utils/check-package", line 194, in <module>
>         __main__()
>       File "./utils/check-package", line 177, in __main__
>         nwarnings, nlines = check_file_using_lib(fname)
>       File "./utils/check-package", line 146, in check_file_using_lib
>         nwarnings += print_warnings(cf.check_line(lineno + 1, text))
>       File "/home/ymorin/dev/buildroot/buildroot/utils/checkpackagelib/lib_hash.py", line 57, in check_line
>         if not re.match("^{}  {}  {}.*$".format(htype, hexa, filename), text):
>       File "/usr/lib/python2.7/re.py", line 141, in match
>         return _compile(pattern, flags).match(string)
>       File "/usr/lib/python2.7/re.py", line 251, in _compile
>         raise error, v # invalid expression
>     sre_constants.error: multiple repeat
>     make: *** [Makefile:1185: check-package] Error 1
>
> Care to have a look at it?

Yes I see it .. the string has to be escaped .. I will prepare that
and send a patch.

--
Heiko


More information about the buildroot mailing list