Package: dbconfig-common
Version: 1.8.40
Severity: normal

  Hi,

  My config script ask several questions (not only the database related onces).
In my config script, I use the "db_capb backup" to allow the user to go back.
One of my steps is to call dbc_go. However, if the user ask dbconfig-common
to go back, the script is ended.
  The related part is in /usr/share/dbconfig-common/dpkg/config:
#################
dbc_go(){
[...]
                if [ $STATE -lt 1 ]; then
                        exit 10
                fi
        done
        
        db_set $dbc_package/internal/skip-preseed true
}
#################
I suggest you change this part to something as (not tested):
#################
dbc_go(){
[...]
                if [ $STATE -lt 1 ]; then
                        if [ "$dbc_config_use_backup" ]; then
                                return 30
                        fi
                        exit 10
                fi
        done
        
        db_set $dbc_package/internal/skip-preseed true
}
#################
If so, one can call dbc_go after setting up dbc_config_use_backup=1 in the 
package config
script and test dbc_go for a return value of 30 (same as debconf)
  And, if dbc_config_use_backup is not set, the behaviour is the same as before.

  Best regards,
    Vincent


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.27-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages dbconfig-common depends on:
ii  debconf [debconf-2.0]         1.5.24     Debian configuration management sy
ii  ucf                           3.0010     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



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to