diff -Nru dbconfig-common-1.8.44ubuntu1/debian/changelog dbconfig-common-1.8.44ubuntu1.1/debian/changelog --- dbconfig-common-1.8.44ubuntu1/debian/changelog 2010-04-16 13:38:17.000000000 +0000 +++ dbconfig-common-1.8.44ubuntu1.1/debian/changelog 2011-06-27 08:19:19.000000000 +0000 @@ -1,3 +1,10 @@ +dbconfig-common (1.8.44ubuntu1.1) lucid-proposed; urgency=low + + * Fix behaviour for automated installs which stops noninteractive, + installs from Sean Finney cherrypicked from debian's 1.8.45 (LP: #800543) + + -- Tom Ellis Fri, 24 Jun 2011 19:49:10 +0100 + dbconfig-common (1.8.44ubuntu1) lucid; urgency=low * Fix pgsql createdb code to use template0 when encoding is specified, diff -Nru dbconfig-common-1.8.44ubuntu1/dpkg/common dbconfig-common-1.8.44ubuntu1.1/dpkg/common --- dbconfig-common-1.8.44ubuntu1/dpkg/common 2010-01-24 01:15:45.000000000 +0000 +++ dbconfig-common-1.8.44ubuntu1.1/dpkg/common 2011-06-27 08:21:45.000000000 +0000 @@ -566,6 +566,10 @@ db_go || true db_get $question _dbc_on_error_option="$RET" + + if [ "${DEBIAN_FRONTEND:-}" = "noninteractive" ]; then + _dbc_on_error_option="ignore" + fi if [ "$_dbc_on_error_option" = "abort" ]; then dbc_abort @@ -601,6 +605,11 @@ db_go || true db_get $dbc_package/install-error _dbc_on_error_option="$RET" + + if [ "${DEBIAN_FRONTEND:-}" = "noninteractive" ]; then + echo "dbconfig-common: $dbc_package $dbc_command: noninteractive fail." >&2 + _dbc_on_error_option="ignore" + fi if [ "$_dbc_on_error_option" = "abort" ]; then dbc_abort