[Dbconfig-common-devel] Trouble with defaults

Tobias Grimm tobias.grimm@e-tobi.net
Tue, 31 May 2005 22:04:59 +0200


This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig4A4AA00D2B9345E0AC5A4DF0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hi!

I have some trouble setting the defaults for a first-time-installation.
That's how debian/config looks like:

# set defaults for dbconfig-common
dbc_dbuser="xxv"
dbc_dbname="xxv"

# First version using dbconfig-common
dbc_first_version="0.33-1"
dbc_load_include="perl:/usr/share/vdr-xxv/debian/read-config.pl"

# source dbconfig-common tools
. /usr/share/debconf/confmodule
. /usr/share/dbconfig-common/dpkg/config.mysql

# run dbconfig-common
dbc_go vdr-xxv $@


But instead of using the database name "xxv" it derives the database
name from the package name (vdrxxv).

If I disable dbc_first_version / dbc_load_include, everything works fine.

Maybe the defaults should be taken into account by dbconfig-load-include
somehow? For now I have fixed this in read-config.pl.

bye,

Tobias

--------------enig4A4AA00D2B9345E0AC5A4DF0
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iQEVAwUBQpzDb9uQ2Pwwa2eDAQKhWAf+KuWVFcu2wIwoc3erePxpX9Ntcuac84Ks
UEpDDsP0VqLvqhYGqqpGf+tOthpqJ+u/jlEtfx4QsVmVrzOn7bSFGiSIPtfikLj8
7WyP6bhOXE7EYZB7Ugl7R7uOEY6LPmY5ynoTUpbhLFlKCeHS2ruGrtc2+krgEQL7
9IxbmgvkFkXmqbpJL4W7VQfRMB71ZPW23hPjNFawHXW0RSoq4oixl38nhRZB4/da
LaogiUbL9b57rnj6Fz8bEY5leoP/D5WdDJVXF28Y0OmbSPXSfJtj/h9C82c1HQui
oQPtOaxeBm/fAIV8mW9fGDs2wfnkjLMAUhX96U9+A/nnLvBcUaaOlQ==
=1Whw
-----END PGP SIGNATURE-----

--------------enig4A4AA00D2B9345E0AC5A4DF0--