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

Re: Bug#146774: Processed: reassigning this bug to apt



reassign 146774 discover
tags 146774 + patch
thanks

On Thu, 23 May 2002, Adam Heath wrote:

> On Thu, 23 May 2002, Branden Robinson wrote:
>
> >   update-rc.d discover remove > /dev/null 2>&1
>
> Ew.  Never hide the output of another program, no matter how annoying it is.

Ahhh, removing this gives a better error message (but the ">/dev/null" is
explicitely in the example in your policy manual...):

<--  snip  -->

...
update-rc.d: /etc/init.d/discover exists during rc.d purge (use -f to
force)
...

<--  snip  -->


After reading update-rc.d(8) and section 10.3.3. of your policy it seems
the following patch (that works for me) is the correct solution:


--- discover.postrm.old	Sun May 26 22:21:36 2002
+++ discover.postrm	Sun May 26 22:22:09 2002
@@ -14,7 +14,7 @@
 SKIPFILE=/etc/discover-autoskip.conf
 INITFILE=/etc/default/discover

-if [ "$1" = "remove" ]; then
+if [ "$1" = "purge" ]; then
   update-rc.d discover remove > /dev/null 2>&1
 fi



cu
Adrian

-- 

You only think this is a free country. Like the US the UK spends a lot of
time explaining its a free country because its a police state.
								Alan Cox


-- 
To UNSUBSCRIBE, email to deity-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: