diff options
Diffstat (limited to 'scripts/lib/recipetool/create_buildsys_python.py')
-rw-r--r-- | scripts/lib/recipetool/create_buildsys_python.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/lib/recipetool/create_buildsys_python.py b/scripts/lib/recipetool/create_buildsys_python.py index e0af2a0f51..266c423547 100644 --- a/scripts/lib/recipetool/create_buildsys_python.py +++ b/scripts/lib/recipetool/create_buildsys_python.py | |||
@@ -278,7 +278,10 @@ class PythonRecipeHandler(RecipeHandler): | |||
278 | for k in sorted(bbinfo): | 278 | for k in sorted(bbinfo): |
279 | v = bbinfo[k] | 279 | v = bbinfo[k] |
280 | mdinfo.append('{} = "{}"'.format(k, v)) | 280 | mdinfo.append('{} = "{}"'.format(k, v)) |
281 | lines_before[src_uri_line-1:src_uri_line-1] = mdinfo | 281 | if src_uri_line: |
282 | lines_before[src_uri_line-1:src_uri_line-1] = mdinfo | ||
283 | else: | ||
284 | lines_before.extend(mdinfo) | ||
282 | 285 | ||
283 | mapped_deps, unmapped_deps = self.scan_setup_python_deps(srctree, setup_info, setup_non_literals) | 286 | mapped_deps, unmapped_deps = self.scan_setup_python_deps(srctree, setup_info, setup_non_literals) |
284 | 287 | ||