Control: tags -1 pending

On 28-07-15 21:56, Evgeni Golov wrote:
>>> since 1.8.49 preseeding of dbc_dbuser and dbc_dbname seems not to work 
>>> anymore.
>>
>> Thanks for reporting this issue. Technically, I wouldn't call it
>> preseeding, as this use of seeding was probably lost when I implemented
>> proper (debconf) preseeding.
> 
> True, but this is how it is documented and how a lot of packages are 
> using it :)
> ( and that's how I noticed it :) )

Indeed thanks for reporting. I implemented the proper solution for this,
but made an extremely stupid copy/paste error, (see dpkg/common line 233
and down) for the dbc_dbname lines:
 # Turns out we cannot fully... According to the documentation
 # package maintainers can provide several variables in their config.
 if [ "$dbc_dbuser" ] ; then _tmp_dbuser="$dbc_dbuser" ; fi
 if [ "$dbc_basepath" ] ; then _tmp_basepath="$dbc_basepath" ; fi
 if [ "$dbc_dbname" ] ; then _tmp_dbuser="$dbc_dbname" ; fi
 dbc_read_package_debconf
 if [ ! "$dbc_dbuser" ] ; then dbc_dbuser="$_tmp_dbuser" ; fi
 if [ ! "$dbc_basepath" ] ; then dbc_basepath="$_tmp_basepath" ; fi
 if [ ! "$dbc_dbname" ] ; then dbc_dbuser="$_tmp_dbname" ; fi

I am working on improving the CI tests. I will try to remember to
include this as well.

> Any chance you are at DebConf for a beer? :)

Sure. I have a BOF about dbconfig-common [1] where you for sure can find me.

Paul

[1] https://summit.debconf.org/debconf15/meeting/190/using-dbconfig-common/



Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to