diff options
author | Saul Wold <sgw@linux.intel.com> | 2012-07-02 17:40:37 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-04 17:40:35 +0100 |
commit | 0a1d5f59773228c17c1872c42f2ce3ad15b521bc (patch) | |
tree | 7cb9f1b05978f6497dea7c9f7344d454210c48ef /meta/classes/package.bbclass | |
parent | f47c151aea7ba32fa47d5a889e3f4ec619f9340f (diff) | |
download | poky-0a1d5f59773228c17c1872c42f2ce3ad15b521bc.tar.gz |
package.bbclass: enable the use of package_qa_handle_error
This will allow the reporting of these errors as either WARNINGs (default)
or ERRORs if installed_vs_shipped is added to the ERROR_QA of the policy
file (such as a <distro_name>.conf file.
V2: found the code I had intended to send instead of that other junk,
was just not watching what I pushed on that one, sorry. (this is edit in
no in the actual commit message)
(From OE-Core rev: 20d4205a4e408b6a99db392d4df458156113106a)
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package.bbclass')
-rw-r--r-- | meta/classes/package.bbclass | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index d94d32f72a..e6856cdf87 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass | |||
@@ -988,9 +988,13 @@ python populate_packages () { | |||
988 | unshipped.append(path) | 988 | unshipped.append(path) |
989 | 989 | ||
990 | if unshipped != []: | 990 | if unshipped != []: |
991 | bb.warn("For recipe %s, the following files/directories were installed but not shipped in any package:" % pn) | 991 | msg = pn + ": Files/directories were installed but not shipped" |
992 | for f in unshipped: | 992 | if "installed_vs_shipped" in (d.getVar('INSANE_SKIP_' + pn, True) or "").split(): |
993 | bb.warn(" " + f) | 993 | bb.note("Package %s skipping QA tests: installed_vs_shipped" % pn) |
994 | else: | ||
995 | for f in unshipped: | ||
996 | msg = msg + "\n " + f | ||
997 | package_qa_handle_error("installed_vs_shipped", msg, d) | ||
994 | 998 | ||
995 | bb.build.exec_func("package_name_hook", d) | 999 | bb.build.exec_func("package_name_hook", d) |
996 | 1000 | ||