Re: [honister][PATCH] insane.bbclass: Correct package_qa_check_empty_dirs()


Martin Jansa
 

This should be sent to oe-core ML.


On Tue, Feb 8, 2022 at 4:47 PM Peter Kjellerstedt <peter.kjellerstedt@...> wrote:
The oe.qa.add_message() method is not available in Honister, use
package_qa_add_message() instead.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@...>
---
 meta/classes/insane.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index bfaf2577d0..2c8f5338e5 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -945,7 +945,7 @@ def package_qa_check_empty_dirs(pkg, d, messages):
             recommendation = (d.getVar('QA_EMPTY_DIRS_RECOMMENDATION:' + dir) or
                               "but it is expected to be empty")
             msg = "%s installs files in %s, %s" % (pkg, dir, recommendation)
-            oe.qa.add_message(messages, "empty-dirs", msg)
+            package_qa_add_message(messages, "empty-dirs", msg)

 def package_qa_check_encoding(keys, encode, d):
     def check_encoding(key, enc):



Join openembedded-devel@lists.openembedded.org to automatically receive all group messages.