[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#568299: Don't remove alternative on package upgrade



Package: cpp
Version: 4:4.4.2-3
Severity: normal

Hi,

please, call update-alternatives only in the case the prerm script was
not called with upgrade. If you remove the alternative in the case of an
upgrade, you might destroy the manual selection for the alternative. Use
something like the following in the prerm script to ensure the
alternative selection is keept as is on package upgrade:

set -e

if [ "$1" != upgrade ]
then
    update-alternatives --quiet --remove cpp /usr/bin/cpp
fi

Thanks, Jörg.

-- System Information:
Debian Release: unstable/experimental
  APT prefers unstable
  APT policy: (900, 'unstable'), (700, 'experimental')
Architecture: powerpc (ppc)

Kernel: Linux 2.6.33-rc6
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages cpp depends on:
ii  cpp-4.4                       4.4.3-2    The GNU C preprocessor

cpp recommends no packages.

Versions of packages cpp suggests:
pn  cpp-doc                       <none>     (no description available)

-- no debconf information

Attachment: signature.asc
Description: Digital signature http://en.wikipedia.org/wiki/OpenPGP


Reply to: