summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog2
-rw-r--r--debian/mdadm.postinst3
-rw-r--r--debian/mdadm.postrm2
-rw-r--r--debian/mdadm.preinst2
4 files changed, 5 insertions, 4 deletions
diff --git a/debian/changelog b/debian/changelog
index 9bdd98a7..d91676ff 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ mdadm (3.3.2-3) UNRELEASED; urgency=low
* remove /var/lib/mdadm dir in postinst to clean up from old pkg,
remove config files on purge (restore extraneous cleanup from
last change) (Closes: #764036)
+ * remove set -u (error on unset variables) from maintscripts
+ (Closes: #766308)
-- Michael Tokarev <mjt@tls.msk.ru> Mon, 06 Oct 2014 11:28:42 +0400
diff --git a/debian/mdadm.postinst b/debian/mdadm.postinst
index bf0db667..bda3b27d 100644
--- a/debian/mdadm.postinst
+++ b/debian/mdadm.postinst
@@ -3,10 +3,9 @@
# Copyright © 2005-2008 Martin F. Krafft <madduck@debian.org>
# Distributable under the terms of the GNU GPL version 2.
#
+set -e
. /usr/share/debconf/confmodule
-# See #369953 for ordering
-set -eu
case "${1:-}" in
configure|reconfigure)
diff --git a/debian/mdadm.postrm b/debian/mdadm.postrm
index 668100a7..30309626 100644
--- a/debian/mdadm.postrm
+++ b/debian/mdadm.postrm
@@ -3,7 +3,7 @@
# Copyright © 2006-2008 Martin F. Krafft <madduck@debian.org>
# Distributable under the terms of the GNU GPL version 2.
#
-set -eu
+set -e
case "${1:-}" in
remove)
diff --git a/debian/mdadm.preinst b/debian/mdadm.preinst
index 0e444813..b90ffb87 100644
--- a/debian/mdadm.preinst
+++ b/debian/mdadm.preinst
@@ -2,7 +2,7 @@
# Copyright © martin f. krafft <madduck@debian.org>
# Distributed under the terms of the Artistic Licence 2.0
#
-set -eu
+set -e
# based on idea from http://www.dpkg.org/dpkg/ConffileHandling
rm_conffile() {