summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2023-09-25 04:18:33 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-09-26 10:37:17 +0100
commit0dbc45e52fea7e7733e863d6afc193f418d733ce (patch)
tree78c96c6d11faf27b86ab428ed79e61d89f21406d /bitbake
parent874e8bb159a5a2d4afd8f641e712b33fa6eff400 (diff)
downloadpoky-0dbc45e52fea7e7733e863d6afc193f418d733ce.tar.gz
bitbake: bitbake-getvar: Make --value imply --quiet
It does not make any sense to get log output from bitbake-getvar when the --value option is used as the log output is sent to stdout and thus interferes with the output of the variable's value. (Bitbake rev: 6b7883533af9c14d80a9f1ae5142644f155b5dee) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rwxr-xr-xbitbake/bin/bitbake-getvar2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/bin/bitbake-getvar b/bitbake/bin/bitbake-getvar
index 13a317e1d6..afd2849846 100755
--- a/bitbake/bin/bitbake-getvar
+++ b/bitbake/bin/bitbake-getvar
@@ -36,7 +36,7 @@ if __name__ == "__main__":
36 print("--flag only makes sense with --value") 36 print("--flag only makes sense with --value")
37 sys.exit(1) 37 sys.exit(1)
38 38
39 quiet = args.quiet 39 quiet = args.quiet or args.value
40 with bb.tinfoil.Tinfoil(tracking=True, setup_logging=not quiet) as tinfoil: 40 with bb.tinfoil.Tinfoil(tracking=True, setup_logging=not quiet) as tinfoil:
41 if args.recipe: 41 if args.recipe:
42 tinfoil.prepare(quiet=3 if quiet else 2) 42 tinfoil.prepare(quiet=3 if quiet else 2)