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>
This commit is contained in:
Peter Kjellerstedt
2023-09-25 04:18:33 +02:00
committed by Richard Purdie
parent 874e8bb159
commit 0dbc45e52f

View File

@@ -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)