gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-merchant] branch master updated: work around debconf bug


From: gnunet
Subject: [taler-merchant] branch master updated: work around debconf bug
Date: Fri, 27 Aug 2021 15:49:14 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new 33595b00 work around debconf bug
33595b00 is described below

commit 33595b00e9996b7b94f11e8cc2182836aa33b299
Author: Florian Dold <florian@dold.me>
AuthorDate: Fri Aug 27 15:49:09 2021 +0200

    work around debconf bug
---
 debian/changelog              |  6 ++++++
 debian/taler-merchant.postrm  | 11 +++++++++++
 debian/taler-merchant.preinst | 11 +++++++++++
 3 files changed, 28 insertions(+)

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

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]