On Wed, 2022-03-02 at 15:17 +0000, Peter Kjellerstedt wrote:
> > + main_lic = d.getVar('LICENSE')
> > +
> > + # Check for obsolete license references in main LICENSE (packages are
> > checked below for any changes)
> > + main_licenses = oe.license.list_licenses(d.getVar('LICENSE'))
>
> The documentation for oe.license.list_licenses() says that it returns
> a list, but I assume that is not true or the code below would not work...
>
> > + obsolete = set(oe.license.obsolete_license_list()) & main_licenses
> > + if obsolete:
> > + oe.qa.handle_error("obsolete-license", "Recipe LICENSE includes
> > obsolete licenses %s" % ' '.join(obsolete), d)
> > +
> > bb.build.exec_func("read_subpackage_metadata", d)
> >
> > # Check non UTF-8 characters on recipe's metadata
It does return a set, not a list.
Cheers,
Richard
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#162616):
https://lists.openembedded.org/g/openembedded-core/message/162616
Mute This Topic: https://lists.openembedded.org/mt/89490745/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-