base: improve LICENSE_FLAGS_DETAILS output

Don't prefix the output of LICENSE_FLAGS_DETAILS with "For further
details, see" so that recipes can put arbitrary text in their license
details instead of being limited to a specific sentence structure.

(From OE-Core rev: d606ad5c237d0e28f09f0aa783e83846cbca8d21)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton
2023-06-21 15:22:12 +01:00
committed by Richard Purdie
parent 74511c360a
commit f8bf2c5517

View File

@@ -520,7 +520,7 @@ python () {
message = "Has a restricted license '%s' which is not listed in your LICENSE_FLAGS_ACCEPTED." % unmatched
details = d.getVarFlag("LICENSE_FLAGS_DETAILS", unmatched)
if details:
message += " For further details, see %s." % details
message += details
bb.debug(1, "Skipping %s: %s" % (pn, message))
raise bb.parse.SkipRecipe(message)