[Dbconfig-common-devel] Re: Help: Skript is not called

sean finney seanius at debian.org
Thu Feb 15 15:54:07 CET 2007


On Wed, 2007-02-14 at 23:52 +0100, Andreas Tille wrote:
> On Sat, 10 Feb 2007, Andreas Tille wrote:
> 
> >> would you mind sharing the source package somewhere so i
> >> could have a look at it?
> >
> >   http://people.debian.org/~tille/packages/gnumed-server/
> 
> Any problems found in this test application of dbconfig-common?
> Did I made any mistake or is the problem in dbconfig-common?
> 
> Kind regards and thanks for looking at the code

okay, i have a suspicion :)

take a look at the code from the postinst script:


# source dbconfig-common shell library, and call the hook function
if [ -f /usr/share/dbconfig-common/dpkg/config.pgsql ]; then
    . /usr/share/dbconfig-common/dpkg/config.pgsql
    dbc_go ${PKG} $@
fi


i think an s/config/postinst/ there should do the trick :)  similarly
you should change the other maintainer scripts as well, so that the hook
script being sourced is always the right one for the right maintainer
script.

also, in case it's helpful later for other debugging, if you export
dbc_debug=1 you can get a bit of information logged to the console about
what dbconfig is doing.   some day i'll bring in more full-fledged
logging capabilities...  anyway, in this case i saw that the postinst
code wasn't being activated, which is what alerted my suspicion.


	sean
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : http://lists.alioth.debian.org/pipermail/dbconfig-common-devel/attachments/20070215/b14cb410/attachment.pgp


More information about the Dbconfig-common-devel mailing list