[Pkg-octave-devel] Using dpkg triggers

Ólafur Jens Sigurðsson ojsbug at gmail.com
Thu Jul 31 16:40:30 UTC 2008


On Thu, Jul 31, 2008 at 05:57:20PM +0200, Rafael Laboissiere wrote:
> Every octave-forge pkg we ship calls "pkg ('rebuild')" in its postinst.  I
> did not yet went through the new dpkg triggers specification [1] but it
> seems that our packages qualify for that.  
> 
> Have anyone thought already about this?
> 
> [1] http://lists.debian.org/debian-dpkg/2007/01/msg00047.html

Havn't seen this before but I think we should rather be looking at
what I think is the final version of the specification [1] but the
discussion following the original draft is probably helpful also.

On quick looking over this looks right up our alley. A triggers file
for us then would be something like

interest /usr/share/octave/3.0.1/m

and the postinst would read

if [ "$1" = "configure" ]; then
 pkg ('rebuild')
fi

right?

[1] http://lists.debian.org/debian-dpkg/2007/04/msg00076.html

Cheers

Oli



More information about the Pkg-octave-devel mailing list