summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-08-27 15:49:09 +0200
committerFlorian Dold <florian@dold.me>2021-08-27 15:49:09 +0200
commit33595b00e9996b7b94f11e8cc2182836aa33b299 (patch)
treef91b8e400ddcb476b9603282f14dc37b4433bc08
parent21ec352775a5ae5f5def24232222dd56acf42eae (diff)
downloadmerchant-33595b00e9996b7b94f11e8cc2182836aa33b299.tar.gz
merchant-33595b00e9996b7b94f11e8cc2182836aa33b299.tar.bz2
merchant-33595b00e9996b7b94f11e8cc2182836aa33b299.zip
work around debconf bug
-rw-r--r--debian/changelog6
-rw-r--r--debian/taler-merchant.postrm11
-rw-r--r--debian/taler-merchant.preinst11
3 files changed, 28 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 8edec8d1..49094099 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+taler-merchant (0.8.2-4) unstable; urgency=low
+
+ * Work around debconf bug.
+
+ -- Florian Dold <dold@taler.net> Fri, 27 Aug 2021 15:48:49 +0200
+
taler-merchant (0.8.2-3) unstable; urgency=low
* Use separate config file for overrides.
diff --git a/debian/taler-merchant.postrm b/debian/taler-merchant.postrm
index bf628b36..a9a7cc05 100644
--- a/debian/taler-merchant.postrm
+++ b/debian/taler-merchant.postrm
@@ -13,4 +13,15 @@ fi
#DEBHELPER#
+# When purging this package after the selections in the preinst have been made,
+# the debconf database is left in an inconsistent state and the package cannot
+# be installed again. This happens because dbconf-common will create a
+# template for these questions with a shared owner. Purging will only delete
+# one of the two templates, leading to a DB state where debconf-set-selections
+# fails. We work around this by manually fixing up the debconf database.
+# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=487300
+if [ -x /usr/share/debconf/fix_db.pl ]; then
+ /usr/share/debconf/fix_db.pl
+fi
+
exit 0
diff --git a/debian/taler-merchant.preinst b/debian/taler-merchant.preinst
index df57b007..d1f67d88 100644
--- a/debian/taler-merchant.preinst
+++ b/debian/taler-merchant.preinst
@@ -7,6 +7,17 @@
set -e
+# When purging this package after the selections in the preinst have been made,
+# the debconf database is left in an inconsistent state and the package cannot
+# be installed again. This happens because dbconf-common will create a
+# template for these questions with a shared owner. Purging will only delete
+# one of the two templates, leading to a DB state where debconf-set-selections
+# fails. We work around this by manually fixing up the debconf database.
+# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=487300
+if [ -x /usr/share/debconf/fix_db.pl ]; then
+ /usr/share/debconf/fix_db.pl
+fi
+
echo taler-merchant taler-merchant/pgsql/method select Unix socket | debconf-set-selections
echo taler-merchant taler-merchant/pgsql/authmethod-user select ident | debconf-set-selections
echo taler-merchant taler-merchant/pgsql/app-pass password | debconf-set-selections