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

Re: How to warn about need to port changes to new configuration file?



On 2010-06-18, Julien Cristau <jcristau@debian.org> wrote:
[dpkg-maintscript-helper]
>> This means though, your package needs to add a versioned depends on dpkg,=
>  which
>> 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> ...
|   fi

That should still require a pre-depends on the dpkg version containing
dpkg-maintscript-helper, unless the script itself is also only called
conditionally.

Kind regards,
Philipp Kern



Reply to: