From fc81ca7d2d4c2a17967af53f82422892da32fb80 Mon Sep 17 00:00:00 2001 From: Nitin A Kamble Date: Thu, 3 Jun 2010 21:48:16 -0700 Subject: insane.bbclass: Throw better error if path is bad Signed-off-by: Nitin A Kamble --- meta/classes/insane.bbclass | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meta') diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index 0c9bde349..0511717c9 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass @@ -286,6 +286,8 @@ def package_qa_check_license(workdir, d): for url in lic_files.split(): (type, host, path, user, pswd, parm) = bb.decodeurl(url) srclicfile = os.path.join(srcdir, path) + if not os.path.isfile(srclicfile): + raise bb.build.FuncFailed( "LIC_FILES_CHKSUM points to invalid file: " + path) if 'md5' not in parm: bb.error("md5 checksum is not specified for ", url) -- cgit v1.2.3