]> WPIA git - gigi.git/blobdiff - debian/cacert-gigi-testing.postinst
fix: only run fetch-locales in postinst configure
[gigi.git] / debian / cacert-gigi-testing.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.