summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oe/recipeutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/recipeutils.py b/meta/lib/oe/recipeutils.py
index 0e7abf833b..c77664f135 100644
--- a/meta/lib/oe/recipeutils.py
+++ b/meta/lib/oe/recipeutils.py
@@ -259,7 +259,7 @@ def patch_recipe_lines(fromlines, values, trailing_newline=True):
259 changed, tolines = bb.utils.edit_metadata(fromlines, varlist, patch_recipe_varfunc, match_overrides=True) 259 changed, tolines = bb.utils.edit_metadata(fromlines, varlist, patch_recipe_varfunc, match_overrides=True)
260 260
261 if remainingnames: 261 if remainingnames:
262 if tolines[-1].strip() != '': 262 if tolines and tolines[-1].strip() != '':
263 tolines.append('\n') 263 tolines.append('\n')
264 for k in remainingnames.keys(): 264 for k in remainingnames.keys():
265 outputvalue(k, tolines) 265 outputvalue(k, tolines)