]> code.ossystems Code Review - openembedded-core.git/commitdiff
postinst-intercepts: always use set -e
authorRoss Burton <ross.burton@intel.com>
Wed, 6 Jan 2016 15:49:37 +0000 (15:49 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 19 Jan 2016 17:36:59 +0000 (17:36 +0000)
If a postinst has a problem (say, qemu crashes) and set -e isn't in operation,
the only mention of the problem is a single line in the rootfs log that doesn't
trigger any warnings.

Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/postinst-intercepts/update_font_cache
scripts/postinst-intercepts/update_pixbuf_cache

index 2e6daedeb5d8e4e51d1a439de30858c7c044b71d..bf65e19a41de5001420768b894bfd7ed659aa845 100644 (file)
@@ -1,5 +1,7 @@
 #!/bin/sh
 
+set -e
+
 PSEUDO_UNLOAD=1 qemuwrapper -L $D -E LD_LIBRARY_PATH=$D/${libdir}:$D/${base_libdir} \
                                        -E ${fontconfigcacheenv} $D${bindir}/fc-cache --sysroot=$D --system-only ${fontconfigcacheparams}
 chown -R root:root $D${fontconfigcachedir}
index a8b4001069e9c2213c7e10a8946bcef31f3db536..5d44075fb4c49b93661fa64c6ae98d033e6fda30 100644 (file)
@@ -1,5 +1,7 @@
 #!/bin/sh
 
+set -e
+
 export GDK_PIXBUF_MODULEDIR=$D${libdir}/gdk-pixbuf-2.0/2.10.0/loaders
 export GDK_PIXBUF_FATAL_LOADER=1