diff options
| author | Darren Hart <dvhart@linux.intel.com> | 2011-10-18 12:00:56 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-10-20 17:13:37 +0100 |
| commit | c37b2094cb36f60fe47145940c469db0faa2c6d4 (patch) | |
| tree | 622f1028d18d1c0b85968534f01db2701288d980 | |
| parent | 8cf683bf7657e248c946404b64d1668f89f75f4e (diff) | |
| download | poky-c37b2094cb36f60fe47145940c469db0faa2c6d4.tar.gz | |
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.
(From OE-Core rev: 80bd0c774fb691977b20e2d775212d849a33bf2b)
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/classes/insane.bbclass | 2 |
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): | |||
| 330 | (type, host, path, user, pswd, parm) = bb.decodeurl(url) | 330 | (type, host, path, user, pswd, parm) = bb.decodeurl(url) |
| 331 | srclicfile = os.path.join(srcdir, path) | 331 | srclicfile = os.path.join(srcdir, path) |
| 332 | if not os.path.isfile(srclicfile): | 332 | if not os.path.isfile(srclicfile): |
| 333 | raise bb.build.FuncFailed( pn + ": LIC_FILES_CHKSUM points to invalid file: " + path) | 333 | raise bb.build.FuncFailed( pn + ": LIC_FILES_CHKSUM points to an invalid file: " + srclicfile) |
| 334 | 334 | ||
| 335 | if 'md5' not in parm: | 335 | if 'md5' not in parm: |
| 336 | bb.error(pn + ": md5 checksum is not specified for ", url) | 336 | bb.error(pn + ": md5 checksum is not specified for ", url) |
