Re: [HELP] update-alternatives

2005-03-03 Thread Arnaud Vandyck
Mon, 28 Feb 2005 08:59:30 +0100, Loïc Minier <[EMAIL PROTECTED]> wrote: > Hi, Salut Loïc, > On Sun, Feb 27, 2005, Arnaud Vandyck wrote: >> I suppose I can add a condition in the for loop but I don't know *what* >> I have to test. Can I do something like: >> >> (for loop) >> if [ -f /u

Re: [HELP] update-alternatives

2005-02-28 Thread Loïc Minier
Hi, On Sun, Feb 27, 2005, Arnaud Vandyck wrote: > I suppose I can add a condition in the for loop but I don't know *what* > I have to test. Can I do something like: > > (for loop) > if [ -f /usr/lib/kaffe/bin/$file ] >update-alternatives --remove $file /usr/lib/kaffe/bin/$file > fi >

[HELP] update-alternatives

2005-02-27 Thread Arnaud Vandyck
Hi, I got problems with update-alternatives, I'd like to have your help. kaffe used to provide 'appletviewer' application (this is an alternative). I'd like to be sure to remove the alternative only if it exists. I have a .prerm code like this: ,[ debian/kaffe.prerm ] | #!/bin/sh | set -e |