]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
lib/oe/recipeutils: patch_recipe_lines: allow omitting trailing newlines
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 14 Mar 2016 03:10:08 +0000 (16:10 +1300)
committerPaul Eggleton <paul.eggleton@linux.intel.com>
Sun, 29 May 2016 22:14:12 +0000 (10:14 +1200)
commitb61b85fc47b18f125dcf8da1bcd7e6cf6f51185e
treed54c142897290b7af934644bb55db6fa1c6cdd6b
parent142712e0682b7b6b92a4d15199677370e453df25
lib/oe/recipeutils: patch_recipe_lines: allow omitting trailing newlines

This function was assuming that what you wanted was that output lines
had trailing newline characters. If you're just outputting each line
verbatim to a text file then that's fine, but sometimes you start with
the assumption that the lines don't have trailing newlines; thus we
shouldn't allow for the possibility that the caller doesn't want them
and add a parameter to control it.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
meta/lib/oe/recipeutils.py