diff options
author | Axel Beckert <abe@deuxchevaux.org> | 2016-12-27 21:52:09 +0100 |
---|---|---|
committer | Axel Beckert <abe@deuxchevaux.org> | 2016-12-27 21:58:18 +0100 |
commit | 2be20bd00fb5bcacb2310a28ded28020e12c1654 (patch) | |
tree | f0921aeb95319bdc43b7ff936fbbe041747d217f /debian/zsh.postinst | |
parent | 39e03ff0ebfa846af7158252b62981064c0df71e (diff) | |
download | zsh-2be20bd00fb5bcacb2310a28ded28020e12c1654.tar.gz zsh-2be20bd00fb5bcacb2310a28ded28020e12c1654.zip |
Only handle /usr/bin/zsh symlink in postrm/remove and postinst/configure stages
Introducing compatibility with the standards-ignoring usrmerge
package, the zsh package started to create and remove the /usr/bin/zsh
symlink in all possible stages of the according maintainer scripts:
The symlink was even created on zsh.postinst being called with abort-*
as parameter and on zsh.postrm being called with upgrade as parameter,
leading to a removal and recreation of the symlink during upgrades and
hence being without that symlink for a more or less short timespan.
Closes: #841048
Diffstat (limited to 'debian/zsh.postinst')
-rw-r--r-- | debian/zsh.postinst | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/debian/zsh.postinst b/debian/zsh.postinst index 5993bc276..65a4d3141 100644 --- a/debian/zsh.postinst +++ b/debian/zsh.postinst @@ -6,6 +6,13 @@ case "$1" in (configure) add-shell /bin/zsh add-shell /usr/bin/zsh + + # New hardcoded symlinks which unfortunately can't be shipped inside + # the package itself since some people want to merge /bin and /usr/bin + # against FHS and all Unix tradition. + if [ ! -e /usr/bin/zsh -a ! -L /usr/bin/zsh ]; then + ln -s /bin/zsh /usr/bin/zsh + fi ;; (abort-upgrade|abort-remove|abort-deconfigure) exit 0 @@ -24,13 +31,6 @@ update-alternatives --remove ksh /bin/zsh4 update-alternatives --remove zsh /bin/zsh5 update-alternatives --remove rzsh /bin/zsh5 -# New hardcoded symlinks which unfortunately can't be shipped inside -# the package itself since some people want to merge /bin and /usr/bin -# against FHS and all Unix tradition. -if [ ! -e /usr/bin/zsh -a ! -L /usr/bin/zsh ]; then - ln -s /bin/zsh /usr/bin/zsh -fi - #DEBHELPER# exit 0 |