]> WPIA git - gigi.git/commitdiff
fix: only run fetch-locales in postinst configure
authorLucas Werkmeister <mail@lucaswerkmeister.de>
Sat, 27 Aug 2016 11:56:51 +0000 (13:56 +0200)
committerLucas Werkmeister <mail@lucaswerkmeister.de>
Sat, 27 Aug 2016 12:02:50 +0000 (14:02 +0200)
I believe we’re not supposed to run that in other postinst phases.

Change-Id: I180aa9fe1b58a33e61b6e6e8b18e944a41d81c22

debian/cacert-gigi-testing.postinst
debian/cacert-gigi.postinst

index 46fcf81ddc60118b4e647245a692597dee35bd22..6ed6758d190cf4a8f1a7afebe5cc27e5d6cb4f2c 100644 (file)
@@ -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.
 
index d2970c11510f6f2f9b89b48de5bfa368c3539dea..d2882e4451f5ba7921668f830218b62c03c22652 100644 (file)
@@ -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.