summaryrefslogtreecommitdiff
path: root/debian/zsh.postinst
AgeCommit message (Collapse)AuthorFilesLines
2024-08-14Install into /usr-merged layoutChris Hofstaedtler1-6/+0
Closes: #1073654
2022-11-13Update /etc/shells using dpkg triggersHelmut Grohne1-3/+0
Closes: #1023317
2017-04-11Reorder zsh.postinst: do alternatives removal before (re)creating ↵Axel Beckert1-8/+8
/usr/bin/zsh symlink Closes: #860033 Thanks: ilf for the bug report and Adrian Bunk for finding the right solution.
2016-12-27Only handle /usr/bin/zsh symlink in postrm/remove and postinst/configure stagesAxel Beckert1-7/+7
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
2016-12-27Remove zsh.postinst code which was commented for longer than we use gitAxel Beckert1-4/+2
2016-01-31Yet another minor fixup of the alternatives-system removalAxel Beckert1-1/+1
Gbp-Dch: Ignore
2016-01-31Remove usage of alternatives system for zsh, rzsh and zsh-staticAxel Beckert1-7/+12
This also fixes installation together with usrmerge, which fiddles with the directory layout and makes /bin a symlink to /usr/bin against all Unix tradition and violating FHS. Closes: #768079
2015-08-31Remove pre-#768937 legacy code from zsh{,-dev,-dbg,-doc}.postinstAxel Beckert1-8/+0
Thanks to lintian for making me aware of this via its (experimental) maintainer-script-may-use-dir_to_symlink_helper warning. Actually these (now removed) code snippets did even the opposite of what is defined in debian/*.maintscript for the according arch:any packages. Either the failing rmdir saved us from the symlink being set or the debian/*.maintscript generated snippets coming after the now removed snippets fixed it just immediately again. The only arch:all package in this list is zsh-doc which still has a symlink /usr/share/doc/zsh-doc to zsh-common. But since this change (in 5.0.2-3) predates Jessie as well as Trusty, we should be able to safely remove that code now anyways. If for some reason, this commit is starting troubles with zsh-doc upgrades, you might want to add a file named debian/zsh-doc.maintscript to the source package and put this single line (without the leading spaces) into it: dir_to_symlink /usr/share/doc/zsh-doc zsh-common 5.0.2-3~ This line is untested though.
2014-11-11Also remove zsh4 alternative for rzsh (Closes: #768241)Axel Beckert1-0/+1
2014-10-20Remove zsh4 alternative after installing zsh5 alternative so that it's never ↵Axel Beckert1-1/+1
empty Git-Dch: Ignore
2014-10-20Remove alternative zsh4 from link zsh, raise zsh5 priority by one (Closes: ↵Axel Beckert1-2/+3
#766015)
2013-01-10zsh{,-dbg}.postinst: Create symlink to /usr/share/doc/zsh-common (Closes: ↵Axel Beckert1-0/+8
#697808) On purpose, dpkg doesn't replace directories with symlinks and vice-versa. Has to be done manually in the maintainer scripts. Thanks: Sebastian Ramacher <sramacher@debian.org>
2012-12-28Split off arch-independent files into zsh-commonAxel Beckert1-5/+0
2012-12-28Convert to debhelperAxel Beckert1-0/+36