From 472f9ca5b8b7fb8c43a872a8332e6f31820ade9d Mon Sep 17 00:00:00 2001 From: Lucas Werkmeister Date: Sat, 27 Aug 2016 13:56:51 +0200 Subject: [PATCH] fix: only run fetch-locales in postinst configure MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit I believe we’re not supposed to run that in other postinst phases. Change-Id: I180aa9fe1b58a33e61b6e6e8b18e944a41d81c22 --- debian/cacert-gigi-testing.postinst | 16 +++++++--------- debian/cacert-gigi.postinst | 15 +++++++-------- 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/debian/cacert-gigi-testing.postinst b/debian/cacert-gigi-testing.postinst index 46fcf81d..6ed6758d 100644 --- a/debian/cacert-gigi-testing.postinst +++ b/debian/cacert-gigi-testing.postinst @@ -20,6 +20,13 @@ set -e case "$1" in configure) + if [ -f /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_get cacert-gigi-testing/fetch-locales-command + $RET + else + gigi fetch-locales + fi ;; abort-upgrade|abort-remove|abort-deconfigure) @@ -31,15 +38,6 @@ case "$1" in ;; esac -if [ -f /usr/share/debconf/confmodule ]; then - . /usr/share/debconf/confmodule - db_get cacert-gigi-testing/fetch-locales-command - $RET -else - gigi fetch-locales -fi - - # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. diff --git a/debian/cacert-gigi.postinst b/debian/cacert-gigi.postinst index d2970c11..d2882e44 100644 --- a/debian/cacert-gigi.postinst +++ b/debian/cacert-gigi.postinst @@ -20,6 +20,13 @@ set -e case "$1" in configure) + if [ -f /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_get cacert-gigi/fetch-locales-command + $RET + else + gigi fetch-locales + fi ;; abort-upgrade|abort-remove|abort-deconfigure) @@ -31,14 +38,6 @@ case "$1" in ;; esac -if [ -f /usr/share/debconf/confmodule ]; then - . /usr/share/debconf/confmodule - db_get cacert-gigi/fetch-locales-command - $RET -else - gigi fetch-locales -fi - # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. -- 2.39.2