I try to write an append for do_unpack do_unpack:append() { echo Hello } But it looks like it is parsed as Python
parser = bb.codeparser.PythonParser(key, logger) > parser.parse_python(value, filename=varflags.get("filename"), lineno=varflags.get("lineno")) deps = deps | parser.references File "/tmp/yocto/meta-poky/bitbake/lib/bb/codeparser.py", line 358, in PythonParser.parse_python(node="\n bb.build.exec_func('base_do_unpack', d)\n echo Hello\n", lineno=1, filename='autogenerated', fixedhash=None): node = "\n" * int(lineno) + node > code = compile(check_indent(str(node)), filename, "exec", ast.PyCF_ONLY_AST) File "autogenerated", line 3 echo Hello ^ IndentationError: unindent does not match any outer indentation level Isn't this possible using shell --------------------- Med Liberalistiske Hilsner ---------------------- Civilingeniør, Kjeld Flarup - Mit sind er mere åbent end min tegnebog Sofienlundvej 6B, 7560 Hjerm, Tlf: 40 29 41 49 Den ikke akademiske hjemmeside for liberalismen - www.liberalismen.dk
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#64582): https://lists.yoctoproject.org/g/yocto/message/64582 Mute This Topic: https://lists.yoctoproject.org/mt/110666328/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-