]> WPIA git - gigi.git/commitdiff
add: debconf parameter to customize location of strings
authorFelix Dörre <felix@dogcraft.de>
Wed, 6 Jul 2016 17:22:19 +0000 (19:22 +0200)
committerFelix Dörre <felix@dogcraft.de>
Wed, 6 Jul 2016 19:59:31 +0000 (21:59 +0200)
Change-Id: I696735bd1a6289582774b11e845873e4447da87e

debian/cacert-gigi-testing.postinst
debian/cacert-gigi-testing.templates [new file with mode: 0644]
debian/cacert-gigi.postinst
debian/cacert-gigi.templates [new file with mode: 0644]

index 3a7ec742a9fef707348360bc016d1661439d4b7a..46fcf81ddc60118b4e647245a692597dee35bd22 100644 (file)
@@ -33,9 +33,12 @@ esac
 
 if [ -f /usr/share/debconf/confmodule ]; then
     . /usr/share/debconf/confmodule
 
 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
 
 fi
 
-gigi fetch-locales
 
 # dh_installdeb will replace this with shell code automatically
 # generated by other debhelper scripts.
 
 # dh_installdeb will replace this with shell code automatically
 # generated by other debhelper scripts.
diff --git a/debian/cacert-gigi-testing.templates b/debian/cacert-gigi-testing.templates
new file mode 100644 (file)
index 0000000..ddf85d0
--- /dev/null
@@ -0,0 +1,4 @@
+Template: cacert-gigi-testing/fetch-locales-command
+Type: string
+Default: gigi fetch-locales
+Description: The command to fetch locales with after installation is complete
index 3a7ec742a9fef707348360bc016d1661439d4b7a..d2970c11510f6f2f9b89b48de5bfa368c3539dea 100644 (file)
@@ -33,10 +33,12 @@ esac
 
 if [ -f /usr/share/debconf/confmodule ]; then
     . /usr/share/debconf/confmodule
 
 if [ -f /usr/share/debconf/confmodule ]; then
     . /usr/share/debconf/confmodule
+    db_get cacert-gigi/fetch-locales-command
+    $RET
+else
+    gigi fetch-locales
 fi
 
 fi
 
-gigi fetch-locales
-
 # dh_installdeb will replace this with shell code automatically
 # generated by other debhelper scripts.
 
 # dh_installdeb will replace this with shell code automatically
 # generated by other debhelper scripts.
 
diff --git a/debian/cacert-gigi.templates b/debian/cacert-gigi.templates
new file mode 100644 (file)
index 0000000..e47d9cc
--- /dev/null
@@ -0,0 +1,4 @@
+Template: cacert-gigi/fetch-locales-command
+Type: string
+Default: gigi fetch-locales
+Description: The command to fetch locales with after installation is complete