diff options
author | Axel Beckert <abe@deuxchevaux.org> | 2015-08-30 23:24:21 +0200 |
---|---|---|
committer | Axel Beckert <abe@deuxchevaux.org> | 2015-08-31 00:10:46 +0200 |
commit | 6fad76ca6e5b9e90ab8f085586909893471ba246 (patch) | |
tree | f776403c2aa88bbf51499a0a10ad584ebf512a9b /debian/zsh-doc.postinst | |
parent | 20b7952ef2aa3643982ba2e905a84f8fd71396d8 (diff) | |
download | zsh-6fad76ca6e5b9e90ab8f085586909893471ba246.tar.gz zsh-6fad76ca6e5b9e90ab8f085586909893471ba246.zip |
Remove pre-#768937 legacy code from zsh{,-dev,-dbg,-doc}.postinst
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.
Diffstat (limited to 'debian/zsh-doc.postinst')
-rw-r--r-- | debian/zsh-doc.postinst | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/debian/zsh-doc.postinst b/debian/zsh-doc.postinst index df10e1e7b..0bd46c118 100644 --- a/debian/zsh-doc.postinst +++ b/debian/zsh-doc.postinst @@ -15,14 +15,6 @@ case "$1" in ;; esac -# Replace documentation directory with symlink -docdir="/usr/share/doc/zsh-doc" -if [ -d $docdir -a ! -L $docdir ]; then - if rmdir $docdir 2>/dev/null; then - ln -sf zsh-common $docdir - fi -fi - #DEBHELPER# exit 0 |