From cace9ddc0edd654877d968643960fa4343472b58 Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Mon, 9 Jan 2012 15:48:33 -0600 Subject: oe.license: avoid the need to catch SyntaxError Signed-off-by: Christopher Larson --- meta/classes/copyleft_compliance.bbclass | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'meta/classes/copyleft_compliance.bbclass') diff --git a/meta/classes/copyleft_compliance.bbclass b/meta/classes/copyleft_compliance.bbclass index 6f058e0f2..2eb9dedd2 100644 --- a/meta/classes/copyleft_compliance.bbclass +++ b/meta/classes/copyleft_compliance.bbclass @@ -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 -- cgit v1.2.3