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

Re: trigger question for texinfo/install-info



Norbert Preining writes ("Re: trigger question for texinfo/install-info"):
> On Fr, 13 Mär 2009, Ian Jackson wrote:
> > But your question makes me I suspect you have some misunderstandings
> > so I think you should let me help you out with your design :-).
> 
> If you want to take a look, please see
> 	svn co svn://svn.debian.org/svn/debian-tex/texinfo/branches/split-ii/debian
> for the very simple triggers on info files in texinfo/install-info,

I've looked at this.  It's basically fine although the postinst is a
bit over complex.

There is no need to select on $action.  There is also no need to
select on the trigger name.  Your postinst can only be run for
triggers that your package explicitly asks for and since your package
only says `interest /usr/share/info', you know that every trigger will
be for that directory.  The reason for providing the activated trigger
name(s) is so that a complicated package with multiple possible
responses to triggers can run only the subset that are needed.

So your postinst should just run update-info-dir.

Also as triggers.txt says:
    The use of a file trigger, and the name of the trigger used, should be
    stated in policy, so that a package which creates a relevant file in a
    maintainer script can activate the trigger explictly.


> and for the much more complex one 
> 	svn://svn.debian.org/svn/debian-tex/tex-common/trunk/debian
> but that one is tricky ;-)

This is indeed more complicated.  I'm not sure I understand it fully
but some of the code I see in the postinst.in makes me uneasy.  Do you
have an explanation of how it's supposed to work and what the files
are for ?

Feel free to answer in German if you feel writing in English is
inhibiting you.  With a bit of luck I'll be able to understand you.


Also, have you read the section in triggers.txt about error handling ?

Ian.


Reply to: