diff options
| author | Chris Larson <chris_larson@mentor.com> | 2010-11-11 08:57:15 -0700 | 
|---|---|---|
| committer | Richard Purdie <rpurdie@linux.intel.com> | 2011-01-04 14:46:39 +0000 | 
| commit | 7e1b709231803aaa64aeb5e47a3df1ac53c88ef2 (patch) | |
| tree | 7c47a9b81a9006abc3ce067a3d93a1c4f980d0dd | |
| parent | 32b4bd92242b5ec3b5c405340dfd24044bad7796 (diff) | |
| download | poky-7e1b709231803aaa64aeb5e47a3df1ac53c88ef2.tar.gz | |
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>
| -rw-r--r-- | bitbake/lib/bb/pysh/pyshyacc.py | 3 | 
1 files changed, 3 insertions, 0 deletions
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): | |||
| 707 | if v.reverse_status: | 707 | if v.reverse_status: | 
| 708 | name = '!' + name | 708 | name = '!' + name | 
| 709 | return [name, format_commands(v.commands)] | 709 | return [name, format_commands(v.commands)] | 
| 710 | elif isinstance(v, Case): | ||
| 711 | name = ['Case'] | ||
| 712 | name += [v.name, format_commands(v.items)] | ||
| 710 | elif isinstance(v, SimpleCommand): | 713 | elif isinstance(v, SimpleCommand): | 
| 711 | name = ['SimpleCommand'] | 714 | name = ['SimpleCommand'] | 
| 712 | if v.words: | 715 | if v.words: | 
