Hello, On 18/10/2023 14:01:11+0200, Julien Stephan wrote: > 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 <jstep...@baylibre.com> > --- > scripts/lib/recipetool/create_buildsys_python.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/lib/recipetool/create_buildsys_python.py > b/scripts/lib/recipetool/create_buildsys_python.py > index 92468b22546..d2c7e251bf7 100644 > --- a/scripts/lib/recipetool/create_buildsys_python.py > +++ b/scripts/lib/recipetool/create_buildsys_python.py > @@ -254,7 +254,7 @@ class PythonRecipeHandler(RecipeHandler): > > if license_str: > for i, line in enumerate(lines_before): > - if line.startswith('LICENSE = '): > + if ine.startswith('##LICENSE_PLACEHOLDER##'):
I doubt this parses at all, ine is not declared ;) > lines_before.insert(i, '# NOTE: License in > setup.py/PKGINFO is: %s' % license_str) > break > > -- > 2.41.0 > > > > -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#189422): https://lists.openembedded.org/g/openembedded-core/message/189422 Mute This Topic: https://lists.openembedded.org/mt/102037342/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-