[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#704089: tzdata config script prevents non-interactive (re)configuration



Control: found -1 2013i-0wheezy1
Control: tags -1 patch


Dear Sébastien and Debian folks,


Am Mittwoch, den 27.03.2013, 18:41 +0000 schrieb Sébastien Bocahu:
> Package: tzdata
> Version: 2012j-1
> 
> The configuration script of the tzdata package, wich uses debconf, prevents
> non-interactive (re)configuration of the package.
> 
> To reproduce:
> 
> - feed debconf with new values for tzdata keys (ex. debconf-set-selections)
> - run 'dpkg-reconfigure -fnoninteractive tzdata'
> - configuration is unchanged
> 
> I propose the following change which makes non-interactive reconfiguration possible:
> 
>   
>   --- /var/lib/dpkg/info/tzdata.config.orig       2013-03-27 18:58:53.000000000 +0100
>   +++ /var/lib/dpkg/info/tzdata.config    2013-03-27 18:35:53.000000000 +0100
>   @@ -370,8 +370,10 @@
>    
>    # Initializes debconf default values from the ones found in
>    # configuration files
>   -db_set tzdata/Areas "$AREA"
>   -db_set tzdata/Zones/$AREA "$ZONE"
>   +if [ -z "$DEBCONF_RECONFIGURE" ]; then
>   +  db_set tzdata/Areas "$AREA"
>   +  db_set tzdata/Zones/$AREA "$ZONE"
>   +fi
>    
>    STATE=1
>    while [ "$STATE" -ge 0 ]; do
>   
> 
> Note: the comment could make us believe that keys are initialized with the
> current values of the debconf database, but it is not the case. These values
> are computed from /etc/timezone.

thank you for your report and patch.

I am able to reproduce this on Debian Wheezy. It would be great if the
patch could be applied to make non-interactive installations easier.


Thanks,

Paul

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: