From: Steffen Sledz <sledz@dresearch-fe.de>
To: "Aníbal Limón" <anibal.limon@linux.intel.com>,
openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] license_class: Add explicity avoid of CLOSED license in validations
Date: Fri, 22 May 2015 12:51:56 +0200 [thread overview]
Message-ID: <555F0A4C.40607@dresearch-fe.de> (raw)
In-Reply-To: <1431981187-24981-1-git-send-email-anibal.limon@linux.intel.com>
On 18.05.2015 22:33, Aníbal Limón wrote:
> The CLOSED license isn't a generic license it is a set and can
> be any closed source license.
>
> [YOCTO #7752]
>
> Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
> ---
> meta/classes/license.bbclass | 10 ++++++++--
> 1 file changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
> index 7972c79..756e7f0 100644
> --- a/meta/classes/license.bbclass
> +++ b/meta/classes/license.bbclass
> @@ -80,6 +80,10 @@ python license_create_manifest() {
> lic_file = os.path.join(d.getVar('LICENSE_DIRECTORY', True),
> pkg_dic[pkg]["PN"], "generic_%s" %
> re.sub('\+', '', lic))
> + # add explicity avoid of CLOSED license because isn't generic
> + if lic == "CLOSED":
> + continue
> +
> if not os.path.exists(lic_file):
> bb.warn("The license listed %s was not in the "\
> "licenses collected for recipe %s"
> @@ -278,8 +282,10 @@ def find_license_files(d):
> lic_files_paths.append(("generic_" + license_type, path))
> break
> else:
> - # And here is where we warn people that their licenses are lousy
> - bb.warn("%s: No generic license file exists for: %s in any provider" % (pn, license_type))
> + # Add explicity avoid of CLOSED license because this isn't generic
> + if license_type != 'CLOSED':
> + # And here is where we warn people that their licenses are lousy
> + bb.warn("%s: No generic license file exists for: %s in any provider" % (pn, license_type))
> pass
>
> if not generic_directory:
ACK
--
DResearch Fahrzeugelektronik GmbH
Otto-Schmirgal-Str. 3, 10319 Berlin, Germany
Tel: +49 30 515932-237 mailto:sledz@dresearch-fe.de
Fax: +49 30 515932-299
Geschäftsführer: Dr. Michael Weber, Werner Mögle;
Amtsgericht Berlin Charlottenburg; HRB 130120 B;
Ust.-IDNr. DE273952058
next prev parent reply other threads:[~2015-05-22 10:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-18 20:33 [PATCH] license_class: Add explicity avoid of CLOSED license in validations Aníbal Limón
2015-05-22 10:51 ` Steffen Sledz [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-05-18 19:16 Aníbal Limón
2015-05-18 19:18 ` Aníbal Limón
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=555F0A4C.40607@dresearch-fe.de \
--to=sledz@dresearch-fe.de \
--cc=anibal.limon@linux.intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.