]> code.ossystems Code Review - openembedded-core.git/commit
lib/oe/utils: add eol to format_pkg_list()
authorgrygorii tertychnyi via Openembedded-core <openembedded-core@lists.openembedded.org>
Wed, 10 Oct 2018 16:26:24 +0000 (19:26 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 11 Oct 2018 09:36:42 +0000 (10:36 +0100)
commitee4d0c879713ba50dc6cc3300f44647faebee2e0
treeb625474647cf8db2b85bd561e3e4838a7df4a8d0
parent2a5d1db6643482dd06a456e303c6f6bc88059813
lib/oe/utils: add eol to format_pkg_list()

Append '\n' to the non-empty formatted string before return. If you
write it to the (manifest) file, it will ensure file ends with a newline.

Many GNU utilities have problems processing the last line of a file
if it is not '\n' terminated. E.g. if the last line is not terminated
by a newline character, then "read" will read it but return false,
leaving the broken partial line in the read variable(s).
It can also break or adversely affect some text processing tools,
that operate on the file.

Signed-off-by: grygorii tertychnyi <gtertych@cisco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/rootfs-postcommands.bbclass
meta/lib/oe/utils.py