bug #561324: asking questions in postinst

2009-12-28 Thread Reinier Haasjes
Hi, 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 i

Re: bug #561324: asking questions in postinst

2009-12-28 Thread Reinier Haasjes
Hi, > Why? Is it really required to have _all_ questions in the postinst? No, not all. There are 4 questions asked. 1) brokers list, the list is received by the package-binary and the user selects te broker he wants to use. For this I can use a dns-query (type TXT) but dig and host are both not e

Re: bug #561324: asking questions in postinst

2009-12-30 Thread Reinier Haasjes
Hi, > Another good solution would be to get the brokers list in the > config/preinst (and ask which one to use) if bind or host are already > there (the common case) and to get the list in the postinst if the > information has not already been gotten. I think this won't be such a bad solution. It

Re: bug #561324: asking questions in postinst

2009-12-30 Thread Reinier Haasjes
> This doesn't help with any of your other dependencies, just the dependency > on debconf (or some other DCMS implementation). > So if I understand correctly a (pre-)depend on host/dig won't help to make sure bind/dig is installed during the config script. My idea now is the following: config-scr

Bug #680861 - change postinst or bug in debhelper?

2012-07-19 Thread Reinier Haasjes
Hi All, I'm trying to resolve bug #680861 where the problem is that if the config of aiccu is incorrect and thus the program can't start it breaks the upgrade. In the aiccu.postinst i have the line: "#DEBHELPER#", debhelper replaces this with: # Automatically added by dh_installinit