summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@intel.com>2014-01-28 10:28:30 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-02-11 11:53:43 +0000
commit38ffed4620d69de36a6d3bfc338700c710a0faf1 (patch)
treec38f173eff0d36e6c1b7e75102378454673fb819 /meta/lib
parent65a28699c80595240b8c0c94582593c133ac242c (diff)
downloadpoky-38ffed4620d69de36a6d3bfc338700c710a0faf1.tar.gz
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. (From OE-Core rev: 5666ce9720132a76b5ff6e99712e240b8dc8e47a) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oe/rootfs.py4
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):
165 try: 165 try:
166 subprocess.check_output(script_full) 166 subprocess.check_output(script_full)
167 except subprocess.CalledProcessError as e: 167 except subprocess.CalledProcessError as e:
168 bb.note("WARNING: intercept script '%s' failed with %d!" % 168 bb.warn("The postinstall intercept hook '%s' failed (exit code: %d)! See log for details!" %
169 (script, e.returncode)) 169 (script, e.returncode))
170 170
171 with open(script_full) as intercept: 171 with open(script_full) as intercept:
@@ -177,7 +177,7 @@ class Rootfs(object):
177 break 177 break
178 178
179 if registered_pkgs is not None: 179 if registered_pkgs is not None:
180 bb.note("The postinstalls for the following packages " 180 bb.warn("The postinstalls for the following packages "
181 "will be postponed for first boot: %s" % 181 "will be postponed for first boot: %s" %
182 registered_pkgs) 182 registered_pkgs)
183 183