mirror of
https://git.yoctoproject.org/poky
synced 2026-10-23 19:38:18 +00:00
oe.license: avoid the need to catch SyntaxError
(From OE-Core rev: cace9ddc0edd654877d968643960fa4343472b58) Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
1 parent
7ce97336aa
commit
19247e44a3
2 files changed
+22
-9
No files matched your search
@@ -48,10 +48,8 @@ def copyleft_should_include(d):
|
||||
|
||||
try:
|
||||
is_included, excluded = oe.license.is_included(d.getVar('LICENSE', True), include, exclude)
|
||||
except oe.license.InvalidLicense as exc:
|
||||
except oe.license.LicenseError as exc:
|
||||
bb.fatal('%s: %s' % (d.getVar('PF', True), exc))
|
||||
except SyntaxError as exc:
|
||||
bb.warn('%s: error when parsing the LICENSE variable: %s' % (d.getVar('P', True), exc))
|
||||
else:
|
||||
if is_included:
|
||||
return True, None
|
||||
|
||||
Reference in new issue
Block a user