]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
lib/oe/recipeutils: fix line splitting in patch_recipe_*
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 1 Nov 2017 00:49:44 +0000 (13:49 +1300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 11 Nov 2017 12:14:26 +0000 (12:14 +0000)
commit202f9af816a7c4398cd4728680d00a0a2dae3b38
tree4adb4b7faf446dc675c347a9c7338f804de863b9
parentb575564ee38ba03d7df6d0e2ab00c23774c07e37
lib/oe/recipeutils: fix line splitting in patch_recipe_*

If a value was split over multiple lines (e.g. as SRC_URI usually is)
then we were inserting the value as one item in the lines list with
newlines between each line. There's nothing wrong with this if you're
writing the list out to a file, but if you want to generate a patch (as
patch_recipe_file() will do if the patch parameter is set to True) then
the diff output looks a bit odd. Split the value before adding it to the
lines list to resolve this.

(From OE-Core rev: 44f4c97234623cbd770fbc86eabb04e7e0c91061)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/recipeutils.py