license: expand_wildcard_licenses: add AGPL-3.0* wildcard

Message ID 20220307101255.18951-1-ceggers@arri.de
State Accepted, archived
Commit 5d5c999ec0a40e3fa14041c35035c8cd4a1da01d
Headers show
Series license: expand_wildcard_licenses: add AGPL-3.0* wildcard | expand

Commit Message

Christian Eggers March 7, 2022, 10:12 a.m. UTC
The Yocto reference manual suggests also settings AGPL-3.0 in
INCOMPATIBLE_LICENSE.

https://www.yoctoproject.org/docs/latest/ref-manual/ref-manual.html#var-INCOMPATIBLE_LICENSE

Fixes: 724fc8047cae ("license: Rework INCOMPATIBLE_LICENSE wildcard handling")
Signed-off-by: Christian Eggers <ceggers@arri.de>
---
 meta/classes/license.bbclass | 1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
index cb1f46983aca..94338be90a4f 100644
--- a/meta/classes/license.bbclass
+++ b/meta/classes/license.bbclass
@@ -282,6 +282,7 @@  def expand_wildcard_licenses(d, wildcard_licenses):
     """
     licenses = set(wildcard_licenses)
     mapping = {
+        "AGPL-3.0*" : ["AGPL-3.0-only", "AGPL-3.0-or-later"],
         "GPL-3.0*" : ["GPL-3.0-only", "GPL-3.0-or-later"],
         "LGPL-3.0*" : ["LGPL-3.0-only", "LGPL-3.0-or-later"],
     }