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