diff options
author | Vyacheslav Yurkov <uvv.mail@gmail.com> | 2024-01-16 09:23:23 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-01-19 12:21:22 +0000 |
commit | 0576bd1edd85f30ca941faf456ac229be5a547f4 (patch) | |
tree | 686d69a36e0eff812ae1daa3cee5ceae2d6989fc /scripts | |
parent | 4eca05e15bee6c1dceea4f622ce13582f793b8e0 (diff) | |
download | poky-0576bd1edd85f30ca941faf456ac229be5a547f4.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.
(From OE-Core rev: 5ca920284d0946346f5b06f5e443c80d9d8b85ce)
Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-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): | |||
730 | new_licenses = [] | 730 | new_licenses = [] |
731 | licenses = origvalue.split('\\') | 731 | licenses = origvalue.split('\\') |
732 | for license in licenses: | 732 | for license in licenses: |
733 | if not license: | ||
734 | logger.warning("No license file was detected for the main module!") | ||
735 | # the license list of the main recipe must be empty | ||
736 | # this can happen for example in case of CLOSED license | ||
737 | # Fall through to complete recipe generation | ||
738 | continue | ||
733 | license = license.strip() | 739 | license = license.strip() |
734 | uri, chksum = license.split(';', 1) | 740 | uri, chksum = license.split(';', 1) |
735 | url = urllib.parse.urlparse(uri) | 741 | url = urllib.parse.urlparse(uri) |