Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Elizabeth Flanagan <elizabeth.flanagan@intel.com>
To: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: [PATCH 5/5] license.bbclass: Fixing LICENSE modifiers.
Date: Wed, 25 May 2011 16:30:54 -0700	[thread overview]
Message-ID: <4DDD912E.6060503@intel.com> (raw)


I support two license type modifiers. + meaning "or greater"
and * meaning "with exceptions" for licenses that don't have
a generic "with exceptions" (as some do).

For now, I'm stripping them out and doing the base generic

Signed-off-by: Beth Flanagan <elizabeth.flanagan@intel.com>
---
  meta/classes/license.bbclass |    8 +++++++-
  1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
index 6a2998a..c20be98 100644
--- a/meta/classes/license.bbclass
+++ b/meta/classes/license.bbclass
@@ -64,7 +64,13 @@ python do_populate_lic() {
              ast.NodeVisitor.generic_visit(self, node)

          def visit_Str(self, node):
-            find_license(node.s)
+            #
+            # Until I figure out what to do with
+            # the two modifiers I support (or greater = +
+            # and "with exceptions" being *
+            # we'll just strip out the modifier and put
+            # the base license.
+            find_license(node.s.replace("+", "").replace("*", ""))
              ast.NodeVisitor.generic_visit(self, node)

          def visit_BinOp(self, node):
-- 
1.7.1



                 reply	other threads:[~2011-05-25 23:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4DDD912E.6060503@intel.com \
    --to=elizabeth.flanagan@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox