[oe-commits] [openembedded-core] 09/35: recipetool: create: allow handers to set license
git at git.openembedded.org
git at git.openembedded.org
Wed Aug 9 22:50:20 UTC 2017
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit 70ae4c88806c746543629bb3528eae2c95e0cb10
Author: Mark D Horn <mark.d.horn at intel.com>
AuthorDate: Wed Aug 2 16:09:45 2017 -0700
recipetool: create: allow handers to set license
Recipetool plugins set through register_recipe_handlers were not able
to impact the license type via setting extravalues['LICENSE']. This is
due to caching the license variables in create_recipe before the handlers
have been executed.
This change moves the call to handle_license_vars well after the
registered plugins (and extravalue functions) have been called.
Signed-off-by: Mark D Horn <mark.d.horn at intel.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
scripts/lib/recipetool/create.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py
index 359eb9a..6dd1a81 100644
--- a/scripts/lib/recipetool/create.py
+++ b/scripts/lib/recipetool/create.py
@@ -549,8 +549,6 @@ def create_recipe(args):
lines_before.append('')
handled = []
- licvalues = handle_license_vars(srctree_use, lines_before, handled, extravalues, tinfoil.config_data)
-
classes = []
# FIXME This is kind of a hack, we probably ought to be using bitbake to do this
@@ -769,6 +767,8 @@ def create_recipe(args):
outlines.append('')
outlines.extend(lines_after)
+ licvalues = handle_license_vars(srctree_use, lines_before, handled, extravalues, tinfoil.config_data)
+
if extravalues:
if 'LICENSE' in extravalues and not licvalues:
# Don't blow away 'CLOSED' value that comments say we set
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list