diff options
author | 2024-01-16 09:23:23 +0100 | |
---|---|---|
committer | 2024-01-19 11:53:56 +0000 | |
commit | 5ca920284d0946346f5b06f5e443c80d9d8b85ce (patch) | |
tree | 049614baf67bf21644eef729b1f0b3233e367256 | |
parent | f4538e3884a0cfa07e16e6a2c986271cc7322dd8 (diff) | |
download | openembedded-core-contrib-5ca920284d0946346f5b06f5e443c80d9d8b85ce.tar.gz |
recipetool: Proceed even with a missing license file
Whenever the recipe uses a CLOSED license, the list is going to be
empty. It's a discouraged practice not to have a license, but proceed
anyway to finish recipe generation.
Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | scripts/lib/recipetool/create_go.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/lib/recipetool/create_go.py b/scripts/lib/recipetool/create_go.py index 668a24b8dd..035ab9f7c1 100644 --- a/scripts/lib/recipetool/create_go.py +++ b/scripts/lib/recipetool/create_go.py @@ -730,6 +730,12 @@ class GoRecipeHandler(RecipeHandler): new_licenses = [] licenses = origvalue.split('\\') for license in licenses: + if not license: + logger.warning("No license file was detected for the main module!") + # the license list of the main recipe must be empty + # this can happen for example in case of CLOSED license + # Fall through to complete recipe generation + continue license = license.strip() uri, chksum = license.split(';', 1) url = urllib.parse.urlparse(uri) |