From: Peter Kjellerstedt <pkj@axis.com>
To: <openembedded-core@lists.openembedded.org>
Subject: [PATCH 2/2] license.bbclass: Remove the available_licenses() function
Date: Thu, 24 Mar 2022 00:14:58 +0100 [thread overview]
Message-ID: <20220323231458.22671-2-pkj@axis.com> (raw)
In-Reply-To: <20220323231458.22671-1-pkj@axis.com>
It is no longer used in OE-Core.
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
---
meta/classes/license.bbclass | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
index 813e1ea4f5..0c637e966e 100644
--- a/meta/classes/license.bbclass
+++ b/meta/classes/license.bbclass
@@ -256,21 +256,6 @@ def canonical_license(d, license):
"""
return d.getVarFlag('SPDXLICENSEMAP', license) or license
-def available_licenses(d):
- """
- Return the available licenses by searching the directories specified by
- COMMON_LICENSE_DIR and LICENSE_PATH.
- """
- lic_dirs = ((d.getVar('COMMON_LICENSE_DIR') or '') + ' ' +
- (d.getVar('LICENSE_PATH') or '')).split()
-
- licenses = []
- for lic_dir in lic_dirs:
- licenses += os.listdir(lic_dir)
-
- licenses = sorted(licenses)
- return licenses
-
def expand_wildcard_licenses(d, wildcard_licenses):
"""
There are some common wildcard values users may want to use. Support them
prev parent reply other threads:[~2022-03-23 23:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-23 23:14 [PATCH 1/2] create-spdx.bbclass: Simplify extraction of license text Peter Kjellerstedt
2022-03-23 23:14 ` Peter Kjellerstedt [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220323231458.22671-2-pkj@axis.com \
--to=pkj@axis.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox