summaryrefslogtreecommitdiff
path: root/dh_installdebconf
diff options
context:
space:
mode:
authorjoey <joey>2002-04-14 16:03:16 +0000
committerjoey <joey>2002-04-14 16:03:16 +0000
commitfae5806aeb1a5e7b40a9c149a739f645395e5139 (patch)
treef777f35ba87a92ee88a0ccaf81f273a7185f1722 /dh_installdebconf
parent29fd2dcb7d861e78f8b5855abd06364e8d60c2ed (diff)
r519: * dh_installdebconf: allow parameters after -- to go to
debconf-mergetemplate. * dh_installman: don't whine about zero-length man pages in .so conversion. * Forgot to export filedoublearray, Closes: #142784
Diffstat (limited to 'dh_installdebconf')
-rwxr-xr-xdh_installdebconf13
1 files changed, 11 insertions, 2 deletions
diff --git a/dh_installdebconf b/dh_installdebconf
index 9dc13bb..2b6bdc7 100755
--- a/dh_installdebconf
+++ b/dh_installdebconf
@@ -11,7 +11,7 @@ use Debian::Debhelper::Dh_Lib;
=head1 SYNOPSIS
-B<dh_installdebconf> [S<I<debhelper options>>] [B<-n>]
+B<dh_installdebconf> [S<I<debhelper options>>] [B<-n>] [S<B<--> I<params>>]
=head1 DESCRIPTION
@@ -51,12 +51,21 @@ debian/package.templates.de is merged with debian/package.templates.
Do not modify postrm script.
+=item B<--> I<params>
+
+Pass the params to debconf-mergetemplate.
+
=back
=cut
init();
+my @extraparams;
+if (defined($dh{U_PARAMS})) {
+ @extraparams=@{$dh{U_PARAMS}};
+}
+
foreach my $package (@{$dh{DOPACKAGES}}) {
my $tmp=tmpdir($package);
my $config=pkgfile($package,"config");
@@ -75,7 +84,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
# Are there translated templates too?
my @trans=(glob("$templates.??"), glob("$templates.??_??"));
if (@trans) {
- complex_doit("debconf-mergetemplate @trans $templates > $tmp/DEBIAN/templates");
+ complex_doit("debconf-mergetemplate @extraparams @trans $templates > $tmp/DEBIAN/templates");
chmod 0644, "$tmp/DEBIAN/templates";
chown 0, 0, "$tmp/DEBIAN/templates";
}