diff options
author | Florian Dold <florian@dold.me> | 2021-08-27 15:49:09 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-08-27 15:49:09 +0200 |
commit | 33595b00e9996b7b94f11e8cc2182836aa33b299 (patch) | |
tree | f91b8e400ddcb476b9603282f14dc37b4433bc08 | |
parent | 21ec352775a5ae5f5def24232222dd56acf42eae (diff) | |
download | merchant-33595b00e9996b7b94f11e8cc2182836aa33b299.tar.gz merchant-33595b00e9996b7b94f11e8cc2182836aa33b299.zip |
work around debconf bug
-rw-r--r-- | debian/changelog | 6 | ||||
-rw-r--r-- | debian/taler-merchant.postrm | 11 | ||||
-rw-r--r-- | debian/taler-merchant.preinst | 11 |
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 @@ | |||
1 | taler-merchant (0.8.2-4) unstable; urgency=low | ||
2 | |||
3 | * Work around debconf bug. | ||
4 | |||
5 | -- Florian Dold <dold@taler.net> Fri, 27 Aug 2021 15:48:49 +0200 | ||
6 | |||
1 | taler-merchant (0.8.2-3) unstable; urgency=low | 7 | taler-merchant (0.8.2-3) unstable; urgency=low |
2 | 8 | ||
3 | * Use separate config file for overrides. | 9 | * 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 | |||
13 | 13 | ||
14 | #DEBHELPER# | 14 | #DEBHELPER# |
15 | 15 | ||
16 | # When purging this package after the selections in the preinst have been made, | ||
17 | # the debconf database is left in an inconsistent state and the package cannot | ||
18 | # be installed again. This happens because dbconf-common will create a | ||
19 | # template for these questions with a shared owner. Purging will only delete | ||
20 | # one of the two templates, leading to a DB state where debconf-set-selections | ||
21 | # fails. We work around this by manually fixing up the debconf database. | ||
22 | # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=487300 | ||
23 | if [ -x /usr/share/debconf/fix_db.pl ]; then | ||
24 | /usr/share/debconf/fix_db.pl | ||
25 | fi | ||
26 | |||
16 | exit 0 | 27 | 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 @@ | |||
7 | 7 | ||
8 | set -e | 8 | set -e |
9 | 9 | ||
10 | # When purging this package after the selections in the preinst have been made, | ||
11 | # the debconf database is left in an inconsistent state and the package cannot | ||
12 | # be installed again. This happens because dbconf-common will create a | ||
13 | # template for these questions with a shared owner. Purging will only delete | ||
14 | # one of the two templates, leading to a DB state where debconf-set-selections | ||
15 | # fails. We work around this by manually fixing up the debconf database. | ||
16 | # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=487300 | ||
17 | if [ -x /usr/share/debconf/fix_db.pl ]; then | ||
18 | /usr/share/debconf/fix_db.pl | ||
19 | fi | ||
20 | |||
10 | echo taler-merchant taler-merchant/pgsql/method select Unix socket | debconf-set-selections | 21 | echo taler-merchant taler-merchant/pgsql/method select Unix socket | debconf-set-selections |
11 | echo taler-merchant taler-merchant/pgsql/authmethod-user select ident | debconf-set-selections | 22 | echo taler-merchant taler-merchant/pgsql/authmethod-user select ident | debconf-set-selections |
12 | echo taler-merchant taler-merchant/pgsql/app-pass password | debconf-set-selections | 23 | echo taler-merchant taler-merchant/pgsql/app-pass password | debconf-set-selections |