summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oe/recipeutils.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/lib/oe/recipeutils.py b/meta/lib/oe/recipeutils.py
index 2f818bcbaa..cab8e40152 100644
--- a/meta/lib/oe/recipeutils.py
+++ b/meta/lib/oe/recipeutils.py
@@ -188,6 +188,11 @@ def patch_recipe_lines(fromlines, values, trailing_newline=True):
188 for wrapline in wrapped[:-1]: 188 for wrapline in wrapped[:-1]:
189 addlines.append('%s \\%s' % (wrapline, newline)) 189 addlines.append('%s \\%s' % (wrapline, newline))
190 addlines.append('%s%s' % (wrapped[-1], newline)) 190 addlines.append('%s%s' % (wrapped[-1], newline))
191
192 # Split on newlines - this isn't strictly necessary if you are only
193 # going to write the output to disk, but if you want to compare it
194 # (as patch_recipe_file() will do if patch=True) then it's important.
195 addlines = [line for l in addlines for line in l.splitlines(True)]
191 if rewindcomments: 196 if rewindcomments:
192 # Ensure we insert the lines before any leading comments 197 # Ensure we insert the lines before any leading comments
193 # (that we'd want to ensure remain leading the next value) 198 # (that we'd want to ensure remain leading the next value)