reassign 936020 dbconfig-common
tags 936020 + patch
thanks
Hello
On Thu, 29 Aug 2019 12:36:50 +0200 Olivier Berger
<olivier.ber...@telecom-sudparis.eu> wrote:
> >> /var/lib/dpkg/info/sympa.prerm: 33: [: =: unexpected operator
This comes from dbconfig-common, not directly from sympa itself.
The problem happens if there is no database configured when the prerm
script is invoked. I was able to trigger this on another package by
installing without a database (question dbconfig-install=false), and
then running dpkg-reconfigure on the package.
Patched attached to add the missing quotes.
Thanks
Chris
diff --git a/dpkg/prerm b/dpkg/prerm
index c400ce0..ed18130 100644
--- a/dpkg/prerm
+++ b/dpkg/prerm
@@ -30,7 +30,7 @@ dbc_go(){
else
need_admin_pw="yup"
# Note: dpkg/config has the same code
- if [ $dbc_dbtype = mysql ] && _dbc_mysql_get_debian_sys_maint ; then
+ if [ "$dbc_dbtype" = mysql ] && _dbc_mysql_get_debian_sys_maint ; then
db_set $dbc_package/$dbc_dbtype/admin-user "$dbc_dbadmin"
db_fset $dbc_package/$dbc_dbtype/admin-user seen true
db_set $dbc_package/$dbc_dbtype/admin-pass "$dbc_dbadmpass"