Re: dpkg tries to remove a config file twice ...

2001-05-22 Thread Steve M. Robbins
On Mon, May 21, 2001 at 08:10:59PM +0200, Robert Bihlmeyer wrote: > Ben Collins <[EMAIL PROTECTED]> writes: > > > Change it to "rm -f ...". That way, you wont get an error. You should do > > it this way anyway, else your package becomes uninstallable if the user > > removes the file before removin

Re: dpkg tries to remove a config file twice ...

2001-05-22 Thread Steve M. Robbins
On Mon, May 21, 2001 at 08:10:59PM +0200, Robert Bihlmeyer wrote: > Ben Collins <[EMAIL PROTECTED]> writes: > > > Change it to "rm -f ...". That way, you wont get an error. You should do > > it this way anyway, else your package becomes uninstallable if the user > > removes the file before removi

Re: dpkg tries to remove a config file twice ...

2001-05-21 Thread Martin Michlmayr
* Othmar Pasteka <[EMAIL PROTECTED]> [20010521 20:38]: > hear, hear ... the law ... what's the fine for not useing -f? :) dpkg errors (and thus RC bugs ;) -- Martin Michlmayr [EMAIL PROTECTED]

Re: dpkg tries to remove a config file twice ...

2001-05-21 Thread Othmar Pasteka
hi, On Mon, May 21, 2001 at 08:10:59PM +0200, Robert Bihlmeyer wrote: > > Change it to "rm -f ...". That way, you wont get an error. You should do > > it this way anyway, else your package becomes uninstallable if the user > > removes the file before removing the package. > It's not only a good id

Re: dpkg tries to remove a config file twice ...

2001-05-21 Thread Robert Bihlmeyer
Ben Collins <[EMAIL PROTECTED]> writes: > Change it to "rm -f ...". That way, you wont get an error. You should do > it this way anyway, else your package becomes uninstallable if the user > removes the file before removing the package. It's not only a good idea. It's the law (policy 6.2.). --

Re: dpkg tries to remove a config file twice ...

2001-05-21 Thread Martin Michlmayr
* Othmar Pasteka <[EMAIL PROTECTED]> [20010521 20:38]: > hear, hear ... the law ... what's the fine for not useing -f? :) dpkg errors (and thus RC bugs ;) -- Martin Michlmayr [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [E

Re: dpkg tries to remove a config file twice ...

2001-05-21 Thread Othmar Pasteka
hi, On Mon, May 21, 2001 at 08:10:59PM +0200, Robert Bihlmeyer wrote: > > Change it to "rm -f ...". That way, you wont get an error. You should do > > it this way anyway, else your package becomes uninstallable if the user > > removes the file before removing the package. > It's not only a good i

Re: dpkg tries to remove a config file twice ...

2001-05-21 Thread Robert Bihlmeyer
Ben Collins <[EMAIL PROTECTED]> writes: > Change it to "rm -f ...". That way, you wont get an error. You should do > it this way anyway, else your package becomes uninstallable if the user > removes the file before removing the package. It's not only a good idea. It's the law (policy 6.2.). --

Re: dpkg tries to remove a config file twice ...

2001-05-20 Thread Ben Collins
On Mon, May 21, 2001 at 12:46:23AM +0200, Othmar Pasteka wrote: > hi, > > i generate a config file in my postinst, hence it's not marked as > a conffile. so if the package is purged i have to remove it by > hand in the postinst: > # purge the config file which is created in the postinst script > i

dpkg tries to remove a config file twice ...

2001-05-20 Thread Othmar Pasteka
hi, i generate a config file in my postinst, hence it's not marked as a conffile. so if the package is purged i have to remove it by hand in the postinst: # purge the config file which is created in the postinst script if [ "$1" = purge ] ; then rm /etc/modlogan/modlogan.conf fi ok, i've

Re: dpkg tries to remove a config file twice ...

2001-05-20 Thread Ben Collins
On Mon, May 21, 2001 at 12:46:23AM +0200, Othmar Pasteka wrote: > hi, > > i generate a config file in my postinst, hence it's not marked as > a conffile. so if the package is purged i have to remove it by > hand in the postinst: > # purge the config file which is created in the postinst script >

dpkg tries to remove a config file twice ...

2001-05-20 Thread Othmar Pasteka
hi, i generate a config file in my postinst, hence it's not marked as a conffile. so if the package is purged i have to remove it by hand in the postinst: # purge the config file which is created in the postinst script if [ "$1" = purge ] ; then rm /etc/modlogan/modlogan.conf fi ok, i've