aboutsummaryrefslogtreecommitdiffstats
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:36:50 +0100
commit6b7883533af9c14d80a9f1ae5142644f155b5dee (patch)
treebd5080de9f571ea2693d1b06cb99421b51dddc4e
parent71ee69a20f21f3d37f4f060a7d8e87d9f1dc6aa1 (diff)
downloadbitbake-contrib-6b7883533af9c14d80a9f1ae5142644f155b5dee.tar.gz
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. Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xbin/bitbake-getvar2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/bitbake-getvar b/bin/bitbake-getvar
index 13a317e1d..afd284984 100755
--- a/bin/bitbake-getvar
+++ b/bin/bitbake-getvar
@@ -36,7 +36,7 @@ if __name__ == "__main__":
print("--flag only makes sense with --value")
sys.exit(1)
- quiet = args.quiet
+ quiet = args.quiet or args.value
with bb.tinfoil.Tinfoil(tracking=True, setup_logging=not quiet) as tinfoil:
if args.recipe:
tinfoil.prepare(quiet=3 if quiet else 2)