Re: How to warn about need to port changes to new configuration file?
On Fri, 18 Jun 2010, Philipp Kern wrote:
> 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
No, if it doesn't exist, the if test simply fails (but you get an ugly
message that the script doesn't exist unless you redirect stderr to
Like what I do? Sponsor me: http://ouaza.com/wp/2010/01/05/5-years-of-freexian/
My Debian goals: http://ouaza.com/wp/2010/01/09/debian-related-goals-for-2010/