]> code.ossystems Code Review - openembedded-core.git/commitdiff
lib/oe/rootfs.py: warn the user if intercept hooks fail
authorLaurentiu Palcu <laurentiu.palcu@intel.com>
Tue, 28 Jan 2014 08:28:30 +0000 (10:28 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 11 Feb 2014 11:50:31 +0000 (11:50 +0000)
The idea of postinstall intercept hooks is to run CPU intensive
postinstalls (like the ones generating font/pixbuf/icon caches) on host,
at rootfs generation time. So, ideally, the user would like to know if
the intercepts fail on host.

With this patch, the user will see warnings on console if intercept
hooks fail to execute.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
meta/lib/oe/rootfs.py

index 1f4cea68a864b6129f52e4fac6338cb97233282e..001c48afcef6cf5c9ebb6cf74ca5dce6e8a276dd 100644 (file)
@@ -165,7 +165,7 @@ class Rootfs(object):
             try:
                 subprocess.check_output(script_full)
             except subprocess.CalledProcessError as e:
-                bb.note("WARNING: intercept script '%s' failed with %d!" %
+                bb.warn("The postinstall intercept hook '%s' failed (exit code: %d)! See log for details!" %
                         (script, e.returncode))
 
                 with open(script_full) as intercept:
@@ -177,7 +177,7 @@ class Rootfs(object):
                             break
 
                     if registered_pkgs is not None:
-                        bb.note("The postinstalls for the following packages "
+                        bb.warn("The postinstalls for the following packages "
                                 "will be postponed for first boot: %s" %
                                 registered_pkgs)