From: Tom Rini Date: Fri, 6 Dec 2019 20:31:31 +0000 (-0500) Subject: buildman: Ignore blank lines during size checks X-Git-Tag: v2020.10~431^2~4^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d08c38c32f64498946230059bd4ec1431c23476a;p=platform%2Fkernel%2Fu-boot.git buildman: Ignore blank lines during size checks Today when parsing the .sizes files we get a warning about an invalid line in the file as it's blank. Solve this by checking that we have a non-blank line prior to processing. Cc: Simon Glass Signed-off-by: Tom Rini Reviewed-by: Simon Glass --- diff --git a/tools/buildman/builder.py b/tools/buildman/builder.py index cfbe4c2..784c641 100644 --- a/tools/buildman/builder.py +++ b/tools/buildman/builder.py @@ -577,7 +577,8 @@ class Builder: sym = {} for line in fd.readlines(): try: - size, type, name = line[:-1].split() + if line.strip(): + size, type, name = line[:-1].split() except: Print("Invalid line in file '%s': '%s'" % (fname, line[:-1])) continue