[oe-commits] [openembedded-core] 10/10: rootfs-postcommands: add test for unsatisfied RRECOMMENDS

git at git.openembedded.org git at git.openembedded.org
Mon Sep 4 19:56:15 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit b30157311487819868d3ec8df903a6bb67e7ad9c
Author: Jose Alarcon <jose.alarcon at ge.com>
AuthorDate: Mon Sep 4 08:12:24 2017 +0300

    rootfs-postcommands: add test for unsatisfied RRECOMMENDS
    
    The do_rootfs log contains a number of unsatisfied package
    recommendations. At the moment those are only visible when
    reviewing the rootfs log.
    
    This patch adds an extra check to surface any unsatisfied
    recommendation  as WARNINGS to the build output.
    
    Enable this check with:
    ROOTFS_POSTPROCESS_COMMAND += "rootfs_log_check_recommends;"
    
    Signed-off-by: Jose Alarcon <jose.alarcon at ge.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/rootfs-postcommands.bbclass | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/meta/classes/rootfs-postcommands.bbclass b/meta/classes/rootfs-postcommands.bbclass
index fb36bad..f6d31a0 100644
--- a/meta/classes/rootfs-postcommands.bbclass
+++ b/meta/classes/rootfs-postcommands.bbclass
@@ -307,3 +307,15 @@ python write_image_test_data() {
            os.remove(testdata_link)
         os.symlink(os.path.basename(testdata), testdata_link)
 }
+
+# Check for unsatisfied recommendations (RRECOMMENDS)
+python rootfs_log_check_recommends() {
+    log_path = d.expand("${T}/log.do_rootfs")
+    with open(log_path, 'r') as log:
+        for line in log:
+            if 'log_check' in line:
+                continue
+
+            if 'unsatisfied recommendation for' in line:
+                bb.warn('[log_check] %s: %s' % (d.getVar('PN', True), line))
+}

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list