[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-merchant] branch master updated: more workarounds
From: |
gnunet |
Subject: |
[taler-merchant] branch master updated: more workarounds |
Date: |
Fri, 27 Aug 2021 16:03:03 +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 b2c11085 more workarounds
b2c11085 is described below
commit b2c110858d7f8b405af3e73b85f28c23037913a9
Author: Florian Dold <florian@dold.me>
AuthorDate: Fri Aug 27 16:02:57 2021 +0200
more workarounds
---
debian/taler-merchant.postrm | 15 ---------------
debian/taler-merchant.preinst | 6 +++++-
2 files changed, 5 insertions(+), 16 deletions(-)
diff --git a/debian/taler-merchant.postrm b/debian/taler-merchant.postrm
index ad11e5bc..bf628b36 100644
--- a/debian/taler-merchant.postrm
+++ b/debian/taler-merchant.postrm
@@ -13,19 +13,4 @@ fi
#DEBHELPER#
-if [ -f /usr/share/debconf/confmodule ]; then
- db_stop
-fi
-
-# 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 d1f67d88..dda68f09 100644
--- a/debian/taler-merchant.preinst
+++ b/debian/taler-merchant.preinst
@@ -13,9 +13,13 @@ set -e
# 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.
+#
+# Unfortunately we can't do this in "postrm", because during "postrm"
+# the configuration database is locked (even after db_stop).
+#
# 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
+ /usr/share/debconf/fix_db.pl || true
fi
echo taler-merchant taler-merchant/pgsql/method select Unix socket |
debconf-set-selections
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-merchant] branch master updated: more workarounds,
gnunet <=