summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonrad Weihmann <kweihmann@outlook.com>2020-07-09 22:58:36 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-07-19 16:22:12 +0100
commitc15296aa63dd0212c13892c46aed5f461725fea7 (patch)
tree0401c7e9ebf0eba356dc4c2cfb07b644bd79f266
parentef3209ba8f9271f3c31704f9f98a35ecb6bb90c5 (diff)
downloadpoky-c15296aa63dd0212c13892c46aed5f461725fea7.tar.gz
poky-c15296aa63dd0212c13892c46aed5f461725fea7.tar.bz2
poky-c15296aa63dd0212c13892c46aed5f461725fea7.zip
bitbake: pyshyacc: allow double COMMA statements
this allows shell statements like '; ;' to pass the parser. As it may be bad code but still valid enough to execute (Bitbake rev: 85a499f8915dd6596d56808e6e1c536015e4eb34) Signed-off-by: Konrad Weihmann <kweihmann@outlook.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit b7732b1b5085bea73e17d112e1bd9ac3d4dc34fb) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/pysh/pyshyacc.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/pysh/pyshyacc.py b/bitbake/lib/bb/pysh/pyshyacc.py
index de565dc9af..924860a6f3 100644
--- a/bitbake/lib/bb/pysh/pyshyacc.py
+++ b/bitbake/lib/bb/pysh/pyshyacc.py
@@ -570,6 +570,7 @@ def p_linebreak(p):
def p_separator_op(p):
"""separator_op : COMMA
+ | COMMA COMMA
| AMP"""
p[0] = p[1]