diff options
author | Axel Beckert <abe@deuxchevaux.org> | 2013-05-09 23:18:59 +0200 |
---|---|---|
committer | Axel Beckert <abe@deuxchevaux.org> | 2013-05-10 00:37:06 +0200 |
commit | 128d9bcdd5cdbe83c833321eb9fca6452b0f9a75 (patch) | |
tree | 269ba1037906a6b6a0ef3f94c9c945490eb8987d | |
parent | e020321f129465dacc2cb74294bec5971b740f10 (diff) | |
download | zsh-128d9bcdd5cdbe83c833321eb9fca6452b0f9a75.tar.gz zsh-128d9bcdd5cdbe83c833321eb9fca6452b0f9a75.zip |
Remove zsh-beta alternatives and conffiles in zsh-beta.postinst
-rw-r--r-- | debian/zsh-beta.postinst | 10 | ||||
-rw-r--r-- | debian/zsh-beta.preinst | 22 |
2 files changed, 32 insertions, 0 deletions
diff --git a/debian/zsh-beta.postinst b/debian/zsh-beta.postinst index d3799dc3c..ad4ada573 100644 --- a/debian/zsh-beta.postinst +++ b/debian/zsh-beta.postinst @@ -15,6 +15,16 @@ case "$1" in ;; esac + +for conffile in zlogin zlogout zprofile zshenv zshrc; do + dpkg-maintscript-helper rm_conffile /etc/zsh-beta/$conffile 5 -- "$@" +done +rmdir /etc/zsh-beta || true + +update-alternatives --remove zsh-beta /usr/bin/zsh +update-alternatives --remove zsh-beta /bin/zsh4 +update-alternatives --remove zsh-beta /bin/zsh5 + # Replace documentation directory with symlink docdir="/usr/share/doc/zsh-beta" if [ -d $docdir -a ! -L $docdir ]; then diff --git a/debian/zsh-beta.preinst b/debian/zsh-beta.preinst new file mode 100644 index 000000000..a0d153c13 --- /dev/null +++ b/debian/zsh-beta.preinst @@ -0,0 +1,22 @@ +#!/bin/sh + +set -e + +case "$1" in + (upgrade|install) + : + ;; + (abort-upgrade|abort-remove|abort-deconfigure) + exit 0 + ;; + (*) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +for conffile in zlogin zlogout zprofile zshenv zshrc; do + dpkg-maintscript-helper rm_conffile /etc/zsh-beta/$conffile 5 -- "$@" +done + +#DEBHELPER# |