mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
bb.pysh: add Case support to format_commands
(Bitbake rev: 6e24f573a0e95068eb9237c1d264ad1148b2f690) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
committed by
Richard Purdie
parent
32b4bd9224
commit
7e1b709231
@@ -707,6 +707,9 @@ def format_commands(v):
|
|||||||
if v.reverse_status:
|
if v.reverse_status:
|
||||||
name = '!' + name
|
name = '!' + name
|
||||||
return [name, format_commands(v.commands)]
|
return [name, format_commands(v.commands)]
|
||||||
|
elif isinstance(v, Case):
|
||||||
|
name = ['Case']
|
||||||
|
name += [v.name, format_commands(v.items)]
|
||||||
elif isinstance(v, SimpleCommand):
|
elif isinstance(v, SimpleCommand):
|
||||||
name = ['SimpleCommand']
|
name = ['SimpleCommand']
|
||||||
if v.words:
|
if v.words:
|
||||||
|
|||||||
Reference in New Issue
Block a user