Skip to contentSkip to conversation

postinst-intercepts: always use set -e

PATCH New Ross Burton 1 participant 1 message Jan 6, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 postinst-intercepts: always use set -e

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.

---
 scripts/postinst-intercepts/update_font_cache   | 2 ++
 scripts/postinst-intercepts/update_pixbuf_cache | 2 ++
 2 files changed, 4 insertions(+)
scripts/postinst-intercepts/update_font_cache +2 -0
index 0deab3c..d8b70ee 100644
@@ -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 ${fontconfigcacheparams}
 chown -R root:root $D${fontconfigcachedir}
scripts/postinst-intercepts/update_pixbuf_cache +2 -0
index a8b4001..5d44075 100644
@@ -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
 
Signature · 1 line
2.6.4