]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
recipetool/create_buildsys_python: fix license note
authorJulien Stephan <jstephan@baylibre.com>
Wed, 25 Oct 2023 15:46:55 +0000 (17:46 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 27 Oct 2023 07:28:04 +0000 (08:28 +0100)
commitb7c26ca2028aa60f740464de85a11a01a531f32e
tree6ab0195fd34c23597cb34ae0633088b7ed12fc0b
parenta37430f682bca9787d939b0722dd5d0d810c12c6
recipetool/create_buildsys_python: fix license note

License field of setup is not always standardized, so we usually use the
classifier to determine the correct license format to use in the recipe.

A warning note is added above the LICENSE field of the create recipe
in case a license is provided in setup. But when the plugin is called,
"LICENSE =" is not yet present so we can never display this note.
Replace the "LICENSE =" condition with "##LICENSE_PLACEHOLDER##"
to actually be able to display the note message

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/recipetool/create_buildsys_python.py