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

Re: Triggers in menu



On Wed, Jun 04, 2008 at 10:06:22PM +0200, Andreas Tille wrote:
> On Wed, 4 Jun 2008, Joey Hess wrote:
>
>> That would prevent update-menus from being run if a package was
>> installed not using apt.
>
> Yes, this is correct.  But what is actually the advantage of calling
> update-menus using triggers instead of doing it in the postinst.

Each package which supplies a menu entry doesn't need a postinst
snippet.  Only the menu program needs to know what to do.

> Currently the
> usage of triggers leads rather to more than to less calls of update-menus
> while only one is really needed (except I'm missing something).

The number of times update-menus is called should be at most as many as
before triggers were introduced.  Maybe what you're seeing is that
packages supplying a menu entry are calling update-menus in their
maintainer scripts as well as having the triggered call to update-menus
occur.

-- 
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <jamessan@debian.org>

Attachment: signature.asc
Description: Digital signature


Reply to: