From: Chris Larson Date: Thu, 11 Nov 2010 15:57:15 +0000 (-0700) Subject: bb.pysh: add Case support to format_commands X-Git-Tag: 2011-1~3139 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=7e1b709231803aaa64aeb5e47a3df1ac53c88ef2;p=openembedded-core.git bb.pysh: add Case support to format_commands (Bitbake rev: 6e24f573a0e95068eb9237c1d264ad1148b2f690) Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/pysh/pyshyacc.py b/bitbake/lib/bb/pysh/pyshyacc.py index 6b2bf466d2..8bb9927321 100644 --- a/bitbake/lib/bb/pysh/pyshyacc.py +++ b/bitbake/lib/bb/pysh/pyshyacc.py @@ -707,6 +707,9 @@ def format_commands(v): if v.reverse_status: name = '!' + name return [name, format_commands(v.commands)] + elif isinstance(v, Case): + name = ['Case'] + name += [v.name, format_commands(v.items)] elif isinstance(v, SimpleCommand): name = ['SimpleCommand'] if v.words: