From 258fed97058e563788f5b598097daa880921e500 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Felix=20D=C3=B6rre?= Date: Wed, 6 Jul 2016 19:22:19 +0200 Subject: [PATCH] add: debconf parameter to customize location of strings Change-Id: I696735bd1a6289582774b11e845873e4447da87e --- debian/cacert-gigi-testing.postinst | 5 ++++- debian/cacert-gigi-testing.templates | 4 ++++ debian/cacert-gigi.postinst | 6 ++++-- debian/cacert-gigi.templates | 4 ++++ 4 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 debian/cacert-gigi-testing.templates create mode 100644 debian/cacert-gigi.templates diff --git a/debian/cacert-gigi-testing.postinst b/debian/cacert-gigi-testing.postinst index 3a7ec742..46fcf81d 100644 --- a/debian/cacert-gigi-testing.postinst +++ b/debian/cacert-gigi-testing.postinst @@ -33,9 +33,12 @@ 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 -gigi fetch-locales # 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 index 00000000..ddf85d06 --- /dev/null +++ b/debian/cacert-gigi-testing.templates @@ -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 diff --git a/debian/cacert-gigi.postinst b/debian/cacert-gigi.postinst index 3a7ec742..d2970c11 100644 --- a/debian/cacert-gigi.postinst +++ b/debian/cacert-gigi.postinst @@ -33,10 +33,12 @@ 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 -gigi fetch-locales - # 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 index 00000000..e47d9cc4 --- /dev/null +++ b/debian/cacert-gigi.templates @@ -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 -- 2.39.2