Re: bug #561324: asking questions in postinst
Reinier Haasjes <reinier@haasjes.com> writes:
> I'm trying to solve bug #561324 which uses it's own binary in the config
> script.
> It uses it's own binary to get some information (tunnel id) which uses
> login+password to retrieve, it really needs this to compile a good
> config script (if you have more than 1 tunnel).
> My idea on solving this is to move the complete config script to
> postinst and ask all the question there. I read everywhere that this is
> not the preferred way to go but I can't discover if it is prohibited by
> the policy.
> Is it prohibited by the policy to ask questions in the postinst-script?
No. You want to avoid it where possible because it breaks
pre-configuration, which is why Lintian warns about it. The person
installing the package will get asked questions during the installation
rather than being asked all questions up-front for the full installation
run. But sometimes it's unavoidable.
--
Russ Allbery (rra@debian.org) <http://www.eyrie.org/~eagle/>
Reply to: