]> code.ossystems Code Review - openembedded-core.git/commit
lib/oe/recipeutils: patch_recipe_lines: allow omitting trailing newlines
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Sun, 29 May 2016 22:20:57 +0000 (10:20 +1200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 30 May 2016 21:45:13 +0000 (22:45 +0100)
commitfb2bb509ff5c7bd71b41a1dcba3b1bff1d18cf5d
tree119cbd5f38ebb3f3b018b62ebc0504106d986d66
parentd780642f950fb3a9699f466a405a2710d870dd08
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/recipeutils.py