From: Leonardo Sandoval Date: Wed, 30 Sep 2015 05:38:33 +0000 (+0000) Subject: scrips/lib/bsp/engine: List properties to stdout when output parameter is omitted X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bd133e2a6e626b4158f5a303d85205de9c66e8f2;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git scrips/lib/bsp/engine: List properties to stdout when output parameter is omitted When user wants to output the list of properties for a corresponding architecture and the output parameter is given (--o/-outfile), there is no need to show the properties into the console. Signed-off-by: Leonardo Sandoval Signed-off-by: Richard Purdie --- diff --git a/scripts/lib/bsp/engine.py b/scripts/lib/bsp/engine.py index 7d6be239dac..aac35d3b19f 100644 --- a/scripts/lib/bsp/engine.py +++ b/scripts/lib/bsp/engine.py @@ -1685,8 +1685,8 @@ def yocto_layer_list_properties(arch, scripts_path, properties_file, expand_comm sys.exit(1) json.dump(properties, of) - - print_dict(properties) + else: + print_dict(properties) def split_nested_property(property):