summaryrefslogtreecommitdiffstats
path: root/scripts/lib
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/recipetool/create_go.py6
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)