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

Re: Guidelines are wrong?



Erick Branderhorst writes ("Guidelines are wrong?"):
> Hi Developers,
> 
> In the guidelines the following is suggested:

> if [ $1 = "purge" ]
> then
>   update-rc.d <package> remove > /dev/null
> fi
> 
> However when invoking a postrm script with these lines it without the
> option purge on the command line an error is reported.

Packages' postrm scripts aren't invoked by dpkg without arguments.
You must have invoked it by hand.

However, I'll change this so the quotes are in the right place.

Ian.


Reply to: