summaryrefslogtreecommitdiff
path: root/bitbake/lib
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-11-11 08:57:15 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2011-01-04 14:46:39 +0000
commit7e1b709231803aaa64aeb5e47a3df1ac53c88ef2 (patch)
tree7c47a9b81a9006abc3ce067a3d93a1c4f980d0dd /bitbake/lib
parent32b4bd92242b5ec3b5c405340dfd24044bad7796 (diff)
downloadopenembedded-core-7e1b709231803aaa64aeb5e47a3df1ac53c88ef2.tar.gz
openembedded-core-7e1b709231803aaa64aeb5e47a3df1ac53c88ef2.tar.bz2
openembedded-core-7e1b709231803aaa64aeb5e47a3df1ac53c88ef2.tar.xz
openembedded-core-7e1b709231803aaa64aeb5e47a3df1ac53c88ef2.zip
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>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/pysh/pyshyacc.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/pysh/pyshyacc.py b/bitbake/lib/bb/pysh/pyshyacc.py
index 6b2bf466d..8bb992732 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: