diff options
author | Julien Stephan <jstephan@baylibre.com> | 2023-12-04 16:59:29 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-12-06 22:55:49 +0000 |
commit | 344e10a21b88292f0cfc04b887bfc77117b3d750 (patch) | |
tree | 57b91b6d048610a86407d248a1044826c7a014fb /scripts/lib/recipetool/create_buildsys_python.py | |
parent | 3ee5c86da3773deb091e24b98ad592c5d19274fb (diff) | |
download | poky-344e10a21b88292f0cfc04b887bfc77117b3d750.tar.gz |
recipetool: create_buildsys_python.py: initialize metadata
In the case pyproject.toml doesn't contains metadatas, the metadata
variable is not initialized and the plugin throws an error and falls back
to another plugin, which is not the desired behaviour. So just ignore
metadata if we don't have them
(From OE-Core rev: 88d15877ba18309c521740d7a9649e14d77189bc)
Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/recipetool/create_buildsys_python.py')
-rw-r--r-- | scripts/lib/recipetool/create_buildsys_python.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/lib/recipetool/create_buildsys_python.py b/scripts/lib/recipetool/create_buildsys_python.py index 9312e4abf1..b620e3271b 100644 --- a/scripts/lib/recipetool/create_buildsys_python.py +++ b/scripts/lib/recipetool/create_buildsys_python.py | |||
@@ -726,6 +726,7 @@ class PythonPyprojectTomlRecipeHandler(PythonRecipeHandler): | |||
726 | 726 | ||
727 | def process(self, srctree, classes, lines_before, lines_after, handled, extravalues): | 727 | def process(self, srctree, classes, lines_before, lines_after, handled, extravalues): |
728 | info = {} | 728 | info = {} |
729 | metadata = {} | ||
729 | 730 | ||
730 | if 'buildsystem' in handled: | 731 | if 'buildsystem' in handled: |
731 | return False | 732 | return False |