]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
scrips/lib/bsp/engine: List properties to stdout when output parameter is omitted
authorLeonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Wed, 30 Sep 2015 05:38:33 +0000 (05:38 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 30 Sep 2015 14:15:18 +0000 (15:15 +0100)
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 <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/bsp/engine.py

index 7d6be239dac99a001f1add051b4a951d3ed75229..aac35d3b19fd908f7a2d322e6d5e5f2d78098302 100644 (file)
@@ -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):