diff options
| -rw-r--r-- | meta/classes/base.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 3501f4becb..104bec8628 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
| @@ -340,9 +340,9 @@ python () { | |||
| 340 | if license == "INVALID": | 340 | if license == "INVALID": |
| 341 | bb.fatal('This recipe does not have the LICENSE field set (%s)' % pn) | 341 | bb.fatal('This recipe does not have the LICENSE field set (%s)' % pn) |
| 342 | 342 | ||
| 343 | commercial_license = bb.data.getVar('COMMERCIAL_LICENSE', d, 1) | 343 | commercial_license = " %s " % bb.data.getVar('COMMERCIAL_LICENSE', d, 1) |
| 344 | import re | 344 | import re |
| 345 | pnr = pn.replace('+', "\+") | 345 | pnr = "[ \t]%s[ \t]" % pn.replace('+', "\+") |
| 346 | if commercial_license and re.search(pnr, commercial_license): | 346 | if commercial_license and re.search(pnr, commercial_license): |
| 347 | bb.debug(1, "Skipping %s because it's commercially licensed" % pn) | 347 | bb.debug(1, "Skipping %s because it's commercially licensed" % pn) |
| 348 | raise bb.parse.SkipPackage("because it may require a commercial license to ship in a product (listed in COMMERCIAL_LICENSE)") | 348 | raise bb.parse.SkipPackage("because it may require a commercial license to ship in a product (listed in COMMERCIAL_LICENSE)") |
