summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/sstatesig.py
diff options
context:
space:
mode:
authorJose Quaresma <quaresma.jose@gmail.com>2024-04-04 10:45:57 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-04-04 21:50:24 +0100
commit110ee701b33600f14e40544bf9354774cd85c5ce (patch)
tree3534fe4f1de99c2614a6364159b20cd69cb9fcab /meta/lib/oe/sstatesig.py
parentab6d3e3d645ffc343f434bf731339fa237df027a (diff)
downloadpoky-110ee701b33600f14e40544bf9354774cd85c5ce.tar.gz
sstatesig: fix netrc.NetrcParseError exception
Looks like sometimes the e.filename and the e.lineno is not properly set by the netrc and this can cause TypeError. | File "/poky/meta/lib/oe/sstatesig.py", line 342, in init_rundepcheck | bb.warn("Error parsing %s:%d: %s" % (e.filename, e.lineno, e.msg)) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | TypeError: %d format: a real number is required, not NoneType (From OE-Core rev: 486ed69939f1b7572f121960c2dde246032686e7) Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/sstatesig.py')
-rw-r--r--meta/lib/oe/sstatesig.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
index b9aa39cdcc..a46e5502ab 100644
--- a/meta/lib/oe/sstatesig.py
+++ b/meta/lib/oe/sstatesig.py
@@ -339,7 +339,7 @@ class SignatureGeneratorOEEquivHash(SignatureGeneratorOEBasicHashMixIn, bb.sigge
339 except FileNotFoundError: 339 except FileNotFoundError:
340 pass 340 pass
341 except netrc.NetrcParseError as e: 341 except netrc.NetrcParseError as e:
342 bb.warn("Error parsing %s:%d: %s" % (e.filename, e.lineno, e.msg)) 342 bb.warn("Error parsing %s:%s: %s" % (e.filename, str(e.lineno), e.msg))
343 343
344# Insert these classes into siggen's namespace so it can see and select them 344# Insert these classes into siggen's namespace so it can see and select them
345bb.siggen.SignatureGeneratorOEBasicHash = SignatureGeneratorOEBasicHash 345bb.siggen.SignatureGeneratorOEBasicHash = SignatureGeneratorOEBasicHash