summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/utils.py')
-rw-r--r--bitbake/lib/bb/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index 7f82687ae4..9b28952231 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -1177,7 +1177,7 @@ def edit_metadata(meta_lines, variables, varfunc, match_overrides=False):
1177 if not skip: 1177 if not skip:
1178 if checkspc: 1178 if checkspc:
1179 checkspc = False 1179 checkspc = False
1180 if newlines[-1] == '\n' and line == '\n': 1180 if newlines and newlines[-1] == '\n' and line == '\n':
1181 # Squash blank line if there are two consecutive blanks after a removal 1181 # Squash blank line if there are two consecutive blanks after a removal
1182 continue 1182 continue
1183 newlines.append(line) 1183 newlines.append(line)