]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
recipetool: create: add trailing newlines
authorJulien Stephan <jstephan@baylibre.com>
Mon, 4 Dec 2023 15:59:30 +0000 (16:59 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 6 Dec 2023 22:55:46 +0000 (22:55 +0000)
commit31b27cc76a1b669e2b126c332608fd772c124d69
treecd23fa6fbeafb443cd04fbc225ae02dbb12ab638
parent88d15877ba18309c521740d7a9649e14d77189bc
recipetool: create: add trailing newlines

create_recipe() function relies on oe.recipeutils.patch_recipe_lines()
which relies on bb.utils.edit_metadata(). edit_metada expect lines to
have trailing newlines, so add it to each lines before calling
patch_recipe_lines, otherwise edit_metadata will not be able to squash
blank line if there are two consecutive blanks after a removal

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/recipetool/create.py