diff options
author | Michael Tokarev <mjt@tls.msk.ru> | 2014-11-14 19:01:38 +0300 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2014-11-14 19:02:09 +0300 |
commit | 425d44386f96f105b5e53e0d91018c28fdaa9eda (patch) | |
tree | 08d0effbbf2b0fc596fccf31f703e02f5edd8ec2 | |
parent | 225a9210d40c6780b50996d53bff7f836834b99f (diff) |
remove set -u from maintscripts (#766308)
-rw-r--r-- | debian/changelog | 2 | ||||
-rw-r--r-- | debian/mdadm.postinst | 3 | ||||
-rw-r--r-- | debian/mdadm.postrm | 2 | ||||
-rw-r--r-- | debian/mdadm.preinst | 2 |
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() { |