summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNitin A Kamble <nitin.a.kamble@intel.com>2010-06-03 21:48:16 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2010-06-07 16:05:12 +0100
commitfc81ca7d2d4c2a17967af53f82422892da32fb80 (patch)
treef633545a7dd2da4d6191aaee0eefef90c14edfe7
parentc3682bf89bdf236a4b4d834069d947b6a1456791 (diff)
downloadopenembedded-core-fc81ca7d2d4c2a17967af53f82422892da32fb80.tar.gz
openembedded-core-fc81ca7d2d4c2a17967af53f82422892da32fb80.tar.bz2
openembedded-core-fc81ca7d2d4c2a17967af53f82422892da32fb80.tar.xz
openembedded-core-fc81ca7d2d4c2a17967af53f82422892da32fb80.zip
insane.bbclass: Throw better error if path is bad
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
-rw-r--r--meta/classes/insane.bbclass2
1 files changed, 2 insertions, 0 deletions
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)