If there is an error parsing .netrc, warn the user
Signed-off-by: Joshua Watt <[email protected]>
---
meta/lib/oe/sstatesig.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
index b867e2a0529..b9aa39cdccf 100644
--- a/meta/lib/oe/sstatesig.py
+++ b/meta/lib/oe/sstatesig.py
@@ -338,6 +338,8 @@ class
SignatureGeneratorOEEquivHash(SignatureGeneratorOEBasicHashMixIn, bb.sigge
self.username, _, self.password = auth
except FileNotFoundError:
pass
+ except netrc.NetrcParseError as e:
+ bb.warn("Error parsing %s:%d: %s" % (e.filename, e.lineno,
e.msg))
# Insert these classes into siggen's namespace so it can see and select them
bb.siggen.SignatureGeneratorOEBasicHash = SignatureGeneratorOEBasicHash
--
2.34.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#197489):
https://lists.openembedded.org/g/openembedded-core/message/197489
Mute This Topic: https://lists.openembedded.org/mt/105140754/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-