Re: How to warn about need to port changes to new configuration file?
On 2010-06-18, Julien Cristau <firstname.lastname@example.org> wrote:
>> This means though, your package needs to add a versioned depends on dpkg,=
>> imho is not so nice.
> Make that pre-depends, since you need it in preinst iirc.
As documented in its manpage, at least. It looks a tad misleading, though:
| But in many cases the operation done by the program is not critical
| for the package, and instead of using a pre-dependency we can call the program
| only if we know that the required command is supported by the currently
| installed dpkg:
| if dpkg-maintscript-helper supports <command>; then
| dpkg-maintscript-helper <command> ...
That should still require a pre-depends on the dpkg version containing
dpkg-maintscript-helper, unless the script itself is also only called