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
> conditionally.

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
/dev/null).

Cheers,
-- 
Raphaël Hertzog

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/


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100618185633.ga30...@rivendell

Reply via email to