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

Re: using perl in preinst script

On Tue, Dec 28, 2010 at 00:32, Rahul Amaram
<amaramrahul@users.sourceforge.net> wrote:
> Hi Neil,
> Thanks for the response. I didn't intend to work on this update as per my
> leisure. I greatly admire the Debian release team for the effort they put
> in, in trying to make Debian a great experience to the end users. As I've
> already told you, I am new and therefore didn't know of the deep-freeze of
> Squeeze. Or else I would have definitely worked on it earlier itself.
> Anyway, coming back to the solution. This is what I plan to do. Kindly
> provide any necessary feedback.
> 1. Stop the server in preinst and if necessary copy the current
> configuration file to a temporary location.
> 2. In postinst, write python code to check if NSS directory service is being
> used (by parsing the configuration file) and if so take the appropriate
> action. Once this is done, delete the temporary copy of configuration file.
> Also I believe for this, python needn't be added to Pre-Depends but only to
> Depends.

I still think adding python to Depends only because a maintainer
script needs it is costing too much, if the application itself doesn't
need python at all.

Aron Xu

Reply to: