summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Watt <JPEWhacker@gmail.com>2024-03-25 09:56:32 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-03-26 17:11:15 +0000
commitf2ff622a4c83948f7612c535034f5dbcb28781a8 (patch)
treea1eb59025647418151b34bb45c801be029144884
parentdf60c6d3eea0aed82ef879f8d3e1451d85971ca9 (diff)
downloadpoky-f2ff622a4c83948f7612c535034f5dbcb28781a8.tar.gz
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 <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xbitbake/bin/bitbake-hashclient2
1 files changed, 2 insertions, 0 deletions
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():
346 login, _, password = auth 346 login, _, password = auth
347 except FileNotFoundError: 347 except FileNotFoundError:
348 pass 348 pass
349 except netrc.NetrcParseError as e:
350 sys.stderr.write(f"Error parsing {e.filename}:{e.lineno}: {e.msg}\n")
349 351
350 func = getattr(args, 'func', None) 352 func = getattr(args, 'func', None)
351 if func: 353 if func: