All of lore.kernel.org
 help / color / mirror / Atom feed
* [master][kirkstone][PATCH] license_image.bbclass: Make QA errors fail the build
@ 2022-04-21 21:11 Peter Kjellerstedt
  2022-04-28 17:35 ` [OE-core] " Steve Sakoman
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Kjellerstedt @ 2022-04-21 21:11 UTC (permalink / raw)
  To: openembedded-core

If, e.g., license-file-missing is added to ERROR_QA, then the build
should fail if any licenses are missing.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
---
 meta/classes/license_image.bbclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/classes/license_image.bbclass b/meta/classes/license_image.bbclass
index 7e1d0e08a9..3213ea758e 100644
--- a/meta/classes/license_image.bbclass
+++ b/meta/classes/license_image.bbclass
@@ -104,6 +104,8 @@ def write_license_files(d, license_manifest, pkg_dic, rootfs=True):
                                        "The license listed %s was not in the "\
                                        "licenses collected for recipe %s"
                                        % (lic, pkg_dic[pkg]["PN"]), d)
+    oe.qa.exit_if_errors(d)
+
     # Two options here:
     # - Just copy the manifest
     # - Copy the manifest and the license directories


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-05-23 23:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-21 21:11 [master][kirkstone][PATCH] license_image.bbclass: Make QA errors fail the build Peter Kjellerstedt
2022-04-28 17:35 ` [OE-core] " Steve Sakoman
2022-04-29  8:10   ` Peter Kjellerstedt
     [not found]   ` <16EA4FAF914EDF73.11702@lists.openembedded.org>
2022-05-23 21:57     ` Peter Kjellerstedt
2022-05-23 23:18       ` Steve Sakoman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.