summaryrefslogtreecommitdiffstats
path: root/lib/bb/pysh
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-11-11 08:57:15 -0700
committerChris Larson <chris_larson@mentor.com>2010-11-11 08:57:15 -0700
commit6e24f573a0e95068eb9237c1d264ad1148b2f690 (patch)
tree2770d1ac411dc6e4a0dbb6c51598fbe45feddccf /lib/bb/pysh
parentff4753e362714a3c4c759c2fad8a9e5b8fe5bef5 (diff)
downloadbitbake-6e24f573a0e95068eb9237c1d264ad1148b2f690.tar.gz
bb.pysh: add Case support to format_commands
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/pysh')
-rw-r--r--lib/bb/pysh/pyshyacc.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bb/pysh/pyshyacc.py b/lib/bb/pysh/pyshyacc.py
index 6b2bf466d..8bb992732 100644
--- a/lib/bb/pysh/pyshyacc.py
+++ b/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: