summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene V. Lyubimkin <jackyf@1501-debian>2008-10-29 23:17:01 +0200
committerEugene V. Lyubimkin <jackyf@1501-debian>2008-10-29 23:17:01 +0200
commit0c96f6dfdc1cb3a64b1be05bb192463d1601edc0 (patch)
treedb9e45c8330add14b4aa8e8f83a33f5f11034497
parent7b4159cf2a4b7de10622c7e4e29247067358a3ab (diff)
Added 'set -e' to maintainer scripts.
-rw-r--r--debian/changelog3
-rwxr-xr-xdebian/postrm2
-rwxr-xr-xdebian/preinst2
-rwxr-xr-xdebian/prerm2
4 files changed, 9 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index d2e8fcc52..47e2d9587 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -17,6 +17,9 @@ apt (0.7.17) unstable; urgency=low
* debian/libapt-pkg-doc.doc-base.*:
- Changed section: from old 'Devel' to 'Debian'. This fixes appropriate
lintian warnings.
+ * debian/{postrm,prerm,preinst}:
+ - Added 'set -e', fixes lintian warnings
+ 'maintainer-script-ignores-error'.
-- Eugene V. Lyubimkin <jackyf.devel@gmail.com> Fri, 24 Oct 2008 23:45:17 +0300
diff --git a/debian/postrm b/debian/postrm
index 8b921dda1..ae1e18d33 100755
--- a/debian/postrm
+++ b/debian/postrm
@@ -8,6 +8,8 @@
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
+set -e
+
#DEBHELPER#
case "$1" in
diff --git a/debian/preinst b/debian/preinst
index 276eae5de..985ad9b84 100755
--- a/debian/preinst
+++ b/debian/preinst
@@ -1,5 +1,7 @@
#! /bin/sh
+set -e
+
# dpkg does this for us while we are upgrading..
#if [ "$1" = "upgrade" -a -L /var/state/apt -a -e /var/lib/apt -a ! -L /var/state/apt ] && dpkg --compare-versions "$2" ">=" "0.4.10"; then
# rm /var/state/apt
diff --git a/debian/prerm b/debian/prerm
index ac70a0279..4a8d47782 100755
--- a/debian/prerm
+++ b/debian/prerm
@@ -1,5 +1,7 @@
#! /bin/sh
+set -e
+
#DEBHELPER#
if [ "$1" = "upgrade" -o "$1" = "failed-upgrade" ] &&