Package: dbconfig-common Version: 1.8.40 Severity: normal When installing a package without raising the debconf default priority, it is easy to be blocked if we want to use an external server (because we will never be asked for the method to connect).
Here is a small patch to raise the input priority when an error occurs. 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: ii mysql-client 5.0.67-1 MySQL database client (metapackage ii mysql-client-5.0 [virtual-mys 5.0.67-1 MySQL database client binaries -- debconf information excluded
diff -ru dpkg/common dpkg.new/common --- dpkg/common 2008-09-08 18:56:46.000000000 +0200 +++ dpkg.new/common 2008-11-08 15:59:15.000000000 +0100 @@ -568,6 +568,9 @@ db_fset $dbc_package/$f seen false done + # in case the server package is not here because a remote + # connection is wanted, raising the priority questions + dbc_raise_priority_after_error=true echo "dbconfig-common: $dbc_package $dbc_command: trying again." >&2 . /usr/share/dbconfig-common/dpkg/config dbc_go $dbc_package configure $dbc_oldversion @@ -604,6 +607,9 @@ done echo "dbconfig-common: $dbc_package $dbc_command: trying again." >&2 + # in case the error occurs because a remote + # connection is wanted, raising the priority questions + dbc_raise_priority_after_error=true . /usr/share/dbconfig-common/dpkg/config dbc_go $dbc_package configure $dbc_oldversion . /usr/share/dbconfig-common/dpkg/postinst diff -ru dpkg/config dpkg.new/config --- dpkg/config 2008-09-08 18:56:46.000000000 +0200 +++ dpkg.new/config 2008-11-08 15:48:55.000000000 +0100 @@ -38,6 +38,11 @@ dbc_read_package_config dbc_preseed_package_debconf + # if we are here due to an error, raising some question priority + if [ "$dbc_raise_priority_after_error" ] ;then + dbc_remote_questions_priority=high + fi + # check out if they're migrating from a non-dbc version if [ "$dbc_oldversion" ] && [ "$dbc_first_version" ] && \ dpkg --compare-versions "$dbc_first_version" gt "$dbc_oldversion"; then