[Pkg-zsh-commits] [SCM] Debian zsh package branch, debian, updated. debian/5.0.2-2-48-g15b0943

Axel Beckert abe at deuxchevaux.org
Thu May 9 22:38:57 UTC 2013


The following commit has been merged in the debian branch:
commit 128d9bcdd5cdbe83c833321eb9fca6452b0f9a75
Author: Axel Beckert <abe at deuxchevaux.org>
Date:   Thu May 9 23:18:59 2013 +0200

    Remove zsh-beta alternatives and conffiles in zsh-beta.postinst

diff --git a/debian/zsh-beta.postinst b/debian/zsh-beta.postinst
index d3799dc..ad4ada5 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 0000000..a0d153c
--- /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#

-- 
Debian zsh package



More information about the Pkg-zsh-commits mailing list