From f2ff622a4c83948f7612c535034f5dbcb28781a8 Mon Sep 17 00:00:00 2001 From: Joshua Watt Date: Mon, 25 Mar 2024 09:56:32 -0600 Subject: bitbake: bitbake-hashclient: Warn on bad .netrc If there is an error parsing .netrc, warn the user on stderr (Bitbake rev: 6366ea8d9c284d10bb8f4129004b55239d9022c0) Signed-off-by: Joshua Watt Signed-off-by: Richard Purdie --- bitbake/bin/bitbake-hashclient | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bitbake') diff --git a/bitbake/bin/bitbake-hashclient b/bitbake/bin/bitbake-hashclient index 47dd27cd3c..610787ed2b 100755 --- a/bitbake/bin/bitbake-hashclient +++ b/bitbake/bin/bitbake-hashclient @@ -346,6 +346,8 @@ def main(): login, _, password = auth except FileNotFoundError: pass + except netrc.NetrcParseError as e: + sys.stderr.write(f"Error parsing {e.filename}:{e.lineno}: {e.msg}\n") func = getattr(args, 'func', None) if func: -- cgit v1.2.3-54-g00ecf