[elbe-devel] [PATCH 4/6] spot errors in install/remove scripts

Benedikt Spranger b.spranger at linutronix.de
Tue Sep 29 17:41:04 CEST 2015


abort install/remove scripts on error.

Signed-off-by: Benedikt Spranger <b.spranger at linutronix.de>
---
 debian/elbe-updated.postinst | 3 +++
 debian/elbe-updated.postrm   | 3 ++-
 debian/elbe-updated.prerm    | 4 ++++
 3 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/debian/elbe-updated.postinst b/debian/elbe-updated.postinst
index 27d19e5..3e6c47b 100644
--- a/debian/elbe-updated.postinst
+++ b/debian/elbe-updated.postinst
@@ -1,4 +1,5 @@
 #!/bin/sh
+set -e
 
 if which pycompile >/dev/null 2>&1; then
 	pycompile -p elbe-updated 
@@ -8,3 +9,5 @@ fi
 # generated by other debhelper scripts.
 
 #DEBHELPER#
+
+exit 0
diff --git a/debian/elbe-updated.postrm b/debian/elbe-updated.postrm
index 3ef85a9..b30cc52 100644
--- a/debian/elbe-updated.postrm
+++ b/debian/elbe-updated.postrm
@@ -1,5 +1,6 @@
 #!/bin/sh
-#
+
+set -e
 
 # dh_installdeb will replace this with shell code automatically
 # generated by other debhelper scripts.
diff --git a/debian/elbe-updated.prerm b/debian/elbe-updated.prerm
index 64a69a1..170f145 100644
--- a/debian/elbe-updated.prerm
+++ b/debian/elbe-updated.prerm
@@ -1,5 +1,7 @@
 #!/bin/sh
 
+set -e
+
 if which pyclean >/dev/null 2>&1; then
 	pyclean -p elbe-updated 
 else
@@ -13,3 +15,5 @@ fi
 # generated by other debhelper scripts.
 
 #DEBHELPER#
+
+exit 0
-- 
2.5.3





More information about the elbe-devel mailing list