On Mon, Aug 13, 2007 at 12:50:49AM +0200, Stefano Zacchiroli wrote: > The second issue is instead functional, it seems that > dbconfig-generate-include is not invoked properly. Here is a log from my > first remove attempt: > > running maintainer removal sql hook... error: you must specify a template > file. for example: '-o template_infile=foo' > dpkg: error processing zenoss (--remove): > subprocess pre-removal script returned error exit status 1
Apparently it's a trivial cut&paste typo in /usr/share/dbconfig-common/dpkg/prerm, the attached patch fixes it. Cheers. -- Stefano Zacchiroli -*- PhD in Computer Science ............... now what? [EMAIL PROTECTED],debian.org,bononia.it} -%- http://www.bononia.it/zack/ (15:56:48) Zack: e la demo dema ? /\ All one has to do is hit the (15:57:15) Bac: no, la demo scema \/ right keys at the right time
--- prerm.orig 2007-08-13 16:34:17.000000000 +0200 +++ /usr/share/dbconfig-common/dpkg/prerm 2007-08-13 16:34:54.000000000 +0200 @@ -65,7 +65,7 @@ $dbc_sqlfile_cmd $rmsql || dbc_remove_error "running maintainer removal sql hook" else tsubstfile=`dbc_mktemp` - /usr/sbin/dbconfig-generate-include -f template -o template_infile=$dbc_sqlfile_adm $dbc_packageconfig > $tsubstfile + /usr/sbin/dbconfig-generate-include -f template -o template_infile=$rmsql $dbc_packageconfig > $tsubstfile $dbc_sqlfile_cmd $tsubstfile || dbc_remove_error "running maintainer removal sql hook" rm -f $tsubstfile fi
signature.asc
Description: Digital signature

