Bug#304144: Problems while removing kvim

tomas pospisek tomas pospisek <tpo2@sourcepole.ch>, 304144@bugs.debian.org
Sat, 16 Apr 2005 00:55:18 +0200 (CEST)


Bcc: to Rodriguez !

On Fri, 15 Apr 2005, R. Rodriguez wrote:

> Hi. Thanks for reopening the bug for me :)
>
> Have you found any temporary solution for removing kvim? I don't know anything
> about diversions... Is has anything to do with "alternatives"?

Untfortunately I can't give you the verbose fix, since I don't seem to be 
able to access the debian diff file.

But the fix is very easy - in /var/lib/dpkg/info/kvim.prerm (or 
postrm?) there is a all for dpkg-divert. Change /usr/bin/vim.org to 
/usr/bin/vim.old there and you should be set.

Norbert: btw. that's a blueprint for the fix actually. Check if the is 
either /usr/bin/vim.org or /usr/bin/vim.old and divert accordingly:

if dpkg-divert --list kvim|grep org
   $extensions='org'
fi
if dpkg-divert --list kvim|grep old
   $extensions="$extensions old"
fi
for i in $extensions do
   dpkg-divert --remove WHATEVER.$i
etc...
...

*t