summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorDarren Hart <dvhart@linux.intel.com>2011-10-18 12:00:56 -0700
committerSaul Wold <sgw@linux.intel.com>2011-10-19 19:58:45 -0700
commit80bd0c774fb691977b20e2d775212d849a33bf2b (patch)
treef62c676f34ed6c9cb587ad954e5ef674317c59a4 /meta/classes
parent3585b21f39489fa8eccc08df3adfbd81e7df4d48 (diff)
downloadopenembedded-core-80bd0c774fb691977b20e2d775212d849a33bf2b.tar.gz
openembedded-core-80bd0c774fb691977b20e2d775212d849a33bf2b.tar.bz2
openembedded-core-80bd0c774fb691977b20e2d775212d849a33bf2b.zip
insane.bbclass: print full path on invalid LICENSE_FILES_CHKSUM
Currently only the basename is printed when os.path.isfile() returns a failure for the license file. If the file is present, but in the wrong directory, this can be non-obvious to debug. Use the full path instead. Make a minor grammatical correction in the error message while we're at it. Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/insane.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index b861e85321..017f7bedc6 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -330,7 +330,7 @@ def package_qa_check_license(workdir, d):
(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( pn + ": LIC_FILES_CHKSUM points to invalid file: " + path)
+ raise bb.build.FuncFailed( pn + ": LIC_FILES_CHKSUM points to an invalid file: " + srclicfile)
if 'md5' not in parm:
bb.error(pn + ": md5 checksum is not specified for ", url)