[PATCH v4 2/3] binman: Support help messages for missing blobs

Simon Glass sjg at chromium.org
Sun Sep 27 03:59:40 CEST 2020


On 09/09/2020 02:56, Simon Glass wrote:
> On Tue, 8 Sep 2020 at 10:37, Alper Nebi Yasak <alpernebiyasak at gmail.com> wrote:
>>
>>     result = {}
>>     tag = None
>>     for line in my_data.decode('utf-8').splitlines():
>>         m_tag = re_tag.match(line)
>>         if line.startswith('#'):
>>             continue
>>         elif m_tag:
>>             tag = m_tag.group(1)
>>             result[tag] = []
>>         elif tag:
>>             result[tag].append(line)
>>     for tag, lines in result.items():
>>         result[tag] = "".join(lines).rstrip()
>>     return result
>>
>
> Yes that is easier, thank you. I'll use this in v4 and perhaps you can
> reply with your sign-off.

The code fragment above is:

Signed-off-by: Alper Nebi Yasak <alpernebiyasak at gmail.com>

Applied to u-boot-dm/next, thanks!


More information about the U-Boot mailing list