[Dbconfig-common-devel] Bug#499598: movabletype-opensource: seems to depend on dbconfig-common, should be pre-depends

sean finney seanius at debian.org
Tue Sep 7 21:39:30 UTC 2010


hi,

On Tue, Sep 07, 2010 at 09:41:45PM +0100, Dominic Hargreaves wrote:
> What's the correct thing to do here? I'm afraid I can't come up with
> the reference for the "author of dbconfig-common suggests" thing.
> 
> I'm also not sure why, for example, this comes up here but not in,
> for example, request-tracker3.8.

what is the actual "confusing error message"?  I didn't see it in the
bug report.

generally speaking the need for pre-depends shouldn't be necessary, since
this only affects the preinst and config maintainer scripts, and of these
only the config script is used by the dbconfig-common code.  in the postinst
(where dbconfig can be guaranteed to be installed and configured already),
dbconfig-common does an internal check to see if the config script was
run, and if not it calls this code again before continuing and everything
should be fine.

i'm going to go on a hunch and assume that perhaps the config maintainer
script isn't testing for the existance of the dbconfig config hooks before
trying to source it?  i.e.

. /usr/share/dbconfig-common/dpkg/config
dbc_go $pkg $1

vs

if [ -f /usr/share/dbconfig-common/dpkg/config ]; then
	. /usr/share/dbconfig-common/dpkg/config
	dbc_go $pkg $1
fi

maybe that's the case?



	sean
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/dbconfig-common-devel/attachments/20100907/322b4870/attachment.pgp>


More information about the Dbconfig-common-devel mailing list