mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
bitbake: bitbake-getvar: Make --quiet work with --recipe
Initializing Tinfoil with setup_logging = False only has an effect when recipe parsing is not needed. To make it work regardless of if --recipe is used, manipulate the quiet parameter to Tinfoil.prepare() instead. (Bitbake rev: 71ee69a20f21f3d37f4f060a7d8e87d9f1dc6aa1) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
c7f99d688c
commit
874e8bb159
@@ -36,9 +36,10 @@ if __name__ == "__main__":
|
|||||||
print("--flag only makes sense with --value")
|
print("--flag only makes sense with --value")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
with bb.tinfoil.Tinfoil(tracking=True, setup_logging=not args.quiet) as tinfoil:
|
quiet = args.quiet
|
||||||
|
with bb.tinfoil.Tinfoil(tracking=True, setup_logging=not quiet) as tinfoil:
|
||||||
if args.recipe:
|
if args.recipe:
|
||||||
tinfoil.prepare(quiet=2)
|
tinfoil.prepare(quiet=3 if quiet else 2)
|
||||||
d = tinfoil.parse_recipe(args.recipe)
|
d = tinfoil.parse_recipe(args.recipe)
|
||||||
else:
|
else:
|
||||||
tinfoil.prepare(quiet=2, config_only=True)
|
tinfoil.prepare(quiet=2, config_only=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user