]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
recipetool: create: split guess_license function
authorEnguerrand de Ribaucourt <enguerrand.de-ribaucourt@savoirfairelinux.com>
Mon, 12 Aug 2024 12:28:28 +0000 (14:28 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 23 Aug 2024 08:49:13 +0000 (09:49 +0100)
commitf1ec28feaea8ea6a2df894dd4ddba561c8a04ed2
tree84e4e5855b6729c29a1ae63150174c085f384aa9
parent445604cfc4a5813ea635f18053cd1f673bf0b830
recipetool: create: split guess_license function

The npm recipetool handler redefines the license code the could be
unified. In order to do this refactoring, extract the bits we'll
need into separate functions.

guess_license() is renamed to find_licenses() and is split into
find_license_files() and match_licenses().

Signed-off-by: Enguerrand de Ribaucourt <enguerrand.de-ribaucourt@savoirfairelinux.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-global/license.bbclass
meta/lib/oeqa/selftest/cases/recipetool.py
scripts/lib/recipetool/create.py
scripts/lib/recipetool/create_go.py
scripts/lib/recipetool/create_npm.py