diff options
-rw-r--r-- | meta/lib/oe/recipeutils.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/meta/lib/oe/recipeutils.py b/meta/lib/oe/recipeutils.py index 5e0fda5235..6c7adb5bdb 100644 --- a/meta/lib/oe/recipeutils.py +++ b/meta/lib/oe/recipeutils.py @@ -235,9 +235,10 @@ def patch_recipe_file(fn, values, patch=False, relpath=''): outputvalue(k, newlines, rewindcomments=True) del remainingnames[k] # Now change this variable, if it needs to be changed - if varname in existingnames: - outputvalue(varname, newlines) - del remainingnames[varname] + if varname in existingnames and op in ['+=', '=', '=+']: + if varname in remainingnames: + outputvalue(varname, newlines) + del remainingnames[varname] return None, None, 0, True else: if varname in values: |