diff options
author | Laurentiu Palcu <laurentiu.palcu@intel.com> | 2014-01-28 10:28:30 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-02-11 11:50:31 +0000 |
commit | 5666ce9720132a76b5ff6e99712e240b8dc8e47a (patch) | |
tree | 5e05052cb5df330c84815126a157770d89be244b /meta/lib | |
parent | b98c7e4945f1c36a6e4f98144a3af4f3049450ae (diff) | |
download | openembedded-core-5666ce9720132a76b5ff6e99712e240b8dc8e47a.tar.gz openembedded-core-5666ce9720132a76b5ff6e99712e240b8dc8e47a.tar.bz2 openembedded-core-5666ce9720132a76b5ff6e99712e240b8dc8e47a.zip |
lib/oe/rootfs.py: warn the user if intercept hooks fail
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>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oe/rootfs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py index 1f4cea68a8..001c48afce 100644 --- a/meta/lib/oe/rootfs.py +++ b/meta/lib/oe/rootfs.py @@ -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) |