On 09/23/2012 08:40 AM, Ivan Shmakov wrote: >>>>>> Jakub Wilk <jw...@debian.org> writes: > > [Cross-posting to packages@qa, for elvis is maintained by the QA > group.] > > > Many packages remove alternatives on upgrade, only to re-add them > > later, potentially discarding manual choices of the user. > > > See also bug #71621. > > […] > > > Debian QA Group <packa...@qa.debian.org> > > elvis > > elvis-console > > elvis-tools > > ircii > > […] > > BTW, do I understand it correctly that it's just a matter of > dropping the ‘upgrade’ case from .prerm? (Possible patch > MIME'd.) > > TIA. > > > > > --- debian/elvis-console.prerm.~1~ 2012-09-23 13:34:49.000000000 +0000 > +++ debian/elvis-console.prerm 2012-09-23 15:24:02.000000000 +0000 > @@ -3,7 +3,7 @@ > set -e > > case "$1" in > - upgrade|remove|deconfigure) > + remove|deconfigure) > for app in editor ex input vi view; do > update-alternatives --quiet --remove "$app" /usr/bin/elvis > done > --- debian/elvis.prerm.~1~ 2012-09-23 13:34:49.000000000 +0000 > +++ debian/elvis.prerm 2012-09-23 15:24:02.000000000 +0000 > @@ -3,7 +3,7 @@ > set -e > > case "$1" in > - upgrade|remove|deconfigure) > + remove|deconfigure) > for app in editor ex input vi view; do > update-alternatives --quiet --remove "$app" /usr/bin/elvisnox > done > --- debian/elvis-tools.prerm.~1~ 2012-09-23 13:34:49.000000000 +0000 > +++ debian/elvis-tools.prerm 2012-09-23 15:24:02.000000000 +0000 > @@ -3,7 +3,7 @@ > set -e > > case "$1" in > - upgrade|remove|deconfigure) > + remove|deconfigure) > update-alternatives --quiet --remove ctags /usr/bin/elvtags > ;; > failed-upgrade)
Can someone confirm that Ivan's proposed patch is the correct way to deal with this problem? I have the same issue in some of my packages. Thank you, tony
signature.asc
Description: OpenPGP digital signature