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=''): | |||
235 | outputvalue(k, newlines, rewindcomments=True) | 235 | outputvalue(k, newlines, rewindcomments=True) |
236 | del remainingnames[k] | 236 | del remainingnames[k] |
237 | # Now change this variable, if it needs to be changed | 237 | # Now change this variable, if it needs to be changed |
238 | if varname in existingnames: | 238 | if varname in existingnames and op in ['+=', '=', '=+']: |
239 | outputvalue(varname, newlines) | 239 | if varname in remainingnames: |
240 | del remainingnames[varname] | 240 | outputvalue(varname, newlines) |
241 | del remainingnames[varname] | ||
241 | return None, None, 0, True | 242 | return None, None, 0, True |
242 | else: | 243 | else: |
243 | if varname in values: | 244 | if varname in values: |