Package: dbconfig-common Version: 1.8.41 Severity: normal Hello,
Figuring that I can not use dbc_dballow, I'm hacking the code to make this variable a space separated list. During that process I saw that it's used to catch an empty dbc_dbserver in dbconfig-generate-include, where we can see: --8<---------------cut here---------------start------------->8--- s/^\(.*\)_DBC_DBSERVER_/${comment_dbserver}\1`sed_rhs_escape $dbc_dballow`/g --8<---------------cut here---------------end--------------->8--- I attach a simple patch to fix it. Regards. -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (90, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.30+hati.1 (SMP w/2 CPU cores; PREEMPT) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages dbconfig-common depends on: ii debconf [debconf-2.0] 1.5.26 Debian configuration management sy ii ucf 3.0018 Update Configuration File: preserv dbconfig-common recommends no packages. Versions of packages dbconfig-common suggests: pn virtual-mysql-client | mysql- <none> (no description available) -- debconf information excluded
diff --git a/dbconfig-generate-include b/dbconfig-generate-include index de15752..db62708 100755 --- a/dbconfig-generate-include +++ b/dbconfig-generate-include @@ -385,16 +385,14 @@ EOF # the best available method to connect to the local db): expand it to # "localhost" if needed if [ -z "$dbc_dbserver" ] ; then - dbc_dballow="localhost" - else - dbc_dballow="$dbc_dbserver" + dbc_dbserver="localhost" fi cat << EOF > "$sedtmp" s/^\(.*\)_DBC_DBUSER_/${comment_dbuser}\1`sed_rhs_escape $dbc_dbuser`/g s/^\(.*\)_DBC_DBPASS_/${comment_dbpass}\1`sed_rhs_escape $dbc_dbpass`/g s/^\(.*\)_DBC_BASEPATH_/${comment_basepath}\1`sed_rhs_escape $dbc_basepath`/g s/^\(.*\)_DBC_DBNAME_/${comment_dbname}\1`sed_rhs_escape $dbc_dbname`/g -s/^\(.*\)_DBC_DBSERVER_/${comment_dbserver}\1`sed_rhs_escape $dbc_dballow`/g +s/^\(.*\)_DBC_DBSERVER_/${comment_dbserver}\1`sed_rhs_escape $dbc_dbserver`/g s/^\(.*\)_DBC_DBPORT_/${comment_dbport}\1`sed_rhs_escape $dbc_dbport`/g s/^\(.*\)_DBC_DBTYPE_/${comment_dbtype}\1`sed_rhs_escape $dbc_dbtype`/g EOF