1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
#! /bin/sh
set -e
if test -x /usr/bin/update-menus; then update-menus; fi
#if [ $1 != "upgrade" ]; then
# update-alternatives --remove uudecode /usr/bin/uudeview
# fi
# This had been added by the previous maintainer, but doesn't work too
# well since the package that contains uudecode, sharutils, doesn't
# support it. So, when uudeview does this on install, it gives the
# following error:
# Checking available versions of uudecode, updating links in /etc/alternatives ...
# warning: /usr/bin/uudecode is supposed to be a symlink to /etc/alternatives/uudecode
# (or nonexistent); however, readlink failed: Invalid argument
# Updating uudecode (/usr/bin/uudecode) to point to /usr/bin/uudeview.
# Updating uudecode.1.gz (/usr/man/man1/uudecode.1.gz) to point to /usr/man/man1/uudeview.1.gz.
# Contrary to what the error message says, it doesn't change uudecode,
# so both uudecode and uudeview work, but the etc/alternative link
# doesn't do anything.
# However, when uudeview is then removed, you get the following error:
# Checking available versions of uudecode, updating links in /etc/alternatives ...
# Alternative /usr/bin/uudeview for uudecode not registered, not removing.
# Last package providing uudecode () removed, deleting it.
# Now things get screwed up because uudecode is deleted. You have to
# re-install the sharutils to get it back.
|