From f79bc5b33ce67c8a7f4ac4da5558a9e07651c67f Mon Sep 17 00:00:00 2001 From: Didier Raboud Date: Fri, 17 Feb 2012 10:14:23 +0100 Subject: [PATCH] Add explicit `set -e` to maintainer scripts. ... instead of adding `-e` to shebang. Also add the #DEBHELPER# item in dh_installdebconf's lsb-core.config. Signed-off-by: Didier Raboud --- debian/lsb-core.config | 6 +++++- debian/lsb-core.postinst | 4 +++- debian/lsb-core.prerm | 4 +++- debian/lsb-release.postinst | 4 +++- debian/lsb-release.postrm | 4 +++- 5 files changed, 17 insertions(+), 5 deletions(-) diff --git a/debian/lsb-core.config b/debian/lsb-core.config index e927aac..88952b5 100755 --- a/debian/lsb-core.config +++ b/debian/lsb-core.config @@ -1,4 +1,6 @@ -#!/bin/sh -e +#!/bin/sh + +set -e . /usr/share/debconf/confmodule @@ -6,3 +8,5 @@ if [ ! -e /etc/shadow ]; then db_input medium lsb/shadowconfig || true fi db_go + +#DEBHELPER# diff --git a/debian/lsb-core.postinst b/debian/lsb-core.postinst index cb86233..34e549c 100755 --- a/debian/lsb-core.postinst +++ b/debian/lsb-core.postinst @@ -1,4 +1,6 @@ -#!/bin/sh -e +#!/bin/sh + +set -e setup_ldso_symlink () { ARCH=`dpkg --print-architecture` diff --git a/debian/lsb-core.prerm b/debian/lsb-core.prerm index 0740b5b..2774f19 100644 --- a/debian/lsb-core.prerm +++ b/debian/lsb-core.prerm @@ -1,4 +1,6 @@ -#!/bin/sh -e +#!/bin/sh + +set -e remove_ldso_symlink () { ARCH=`dpkg --print-architecture` diff --git a/debian/lsb-release.postinst b/debian/lsb-release.postinst index 657dd88..93862fd 100644 --- a/debian/lsb-release.postinst +++ b/debian/lsb-release.postinst @@ -1,4 +1,6 @@ -#!/bin/sh -e +#!/bin/sh + +set -e case "$1" in configure) diff --git a/debian/lsb-release.postrm b/debian/lsb-release.postrm index 704c2db..29333f6 100644 --- a/debian/lsb-release.postrm +++ b/debian/lsb-release.postrm @@ -1,4 +1,6 @@ -#!/bin/sh -e +#!/bin/sh + +set -e case "$1" in purge) -- 2.30.2