[Pkg-zsh-commits] [zsh] 01/01: Reorder zsh.postinst: do alternatives removal before (re)creating /usr/bin/zsh symlink

Axel Beckert abe at deuxchevaux.org
Tue Apr 11 19:34:24 UTC 2017


This is an automated email from the git hooks/post-receive script.

abe pushed a commit to branch debian
in repository zsh.

commit 5c3b52b8cb20cc63a0594567d1bab5e517e32a6f
Author: Axel Beckert <abe at deuxchevaux.org>
Date:   Tue Apr 11 21:12:27 2017 +0200

    Reorder zsh.postinst: do alternatives removal before (re)creating /usr/bin/zsh symlink
    
    Closes: #860033
    
    Thanks: ilf for the bug report and Adrian Bunk for finding the right solution.
---
 debian/zsh.postinst | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/debian/zsh.postinst b/debian/zsh.postinst
index 65a4d31..273d438 100644
--- a/debian/zsh.postinst
+++ b/debian/zsh.postinst
@@ -2,6 +2,14 @@
 
 set -e
 
+# ksh alternatives
+update-alternatives --remove ksh /usr/bin/zsh
+update-alternatives --remove ksh /bin/zsh4
+
+# Remove alternatives system for zsh in general
+update-alternatives --remove zsh /bin/zsh5
+update-alternatives --remove rzsh /bin/zsh5
+
 case "$1" in
     (configure)
         add-shell /bin/zsh
@@ -23,14 +31,6 @@ case "$1" in
     ;;
 esac
 
-# ksh alternatives
-update-alternatives --remove ksh /usr/bin/zsh
-update-alternatives --remove ksh /bin/zsh4
-
-# Remove alternatives system for zsh in general
-update-alternatives --remove zsh /bin/zsh5
-update-alternatives --remove rzsh /bin/zsh5
-
 #DEBHELPER#
 
 exit 0

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/zsh.git



More information about the Pkg-zsh-commits mailing list