[Buildroot] [PATCH 4/9] check-package: check *.hash files

Ricardo Martincoski ricardo.martincoski at gmail.com
Sun Feb 19 23:16:48 UTC 2017


Thomas,

On Tue, Jan 24, 2017 at 07:18 PM, Thomas De Schampheleire wrote:

[snip]
>> +FILENAME_WITH_SLASH = re.compile("/")
[snip]
>> +    if FILENAME_WITH_SLASH.search(filename):
> 
> This is overkill. It is more simple and I expect more performant to just do:
> 
>     if '/' in filename:

Fixed in v2.

Regards,
Ricardo


More information about the buildroot mailing list