]> git.donarmstrong.com Git - debhelper.git/commitdiff
r519: * dh_installdebconf: allow parameters after -- to go to
authorjoey <joey>
Sun, 14 Apr 2002 16:03:16 +0000 (16:03 +0000)
committerjoey <joey>
Sun, 14 Apr 2002 16:03:16 +0000 (16:03 +0000)
     debconf-mergetemplate.
   * dh_installman: don't whine about zero-length man pages in .so conversion.
   * Forgot to export filedoublearray, Closes: #142784

Debian/Debhelper/Dh_Lib.pm
debian/changelog
dh_installdebconf
dh_installman

index 0aa883b1f3214e6b6acda5df7de295a6075cf165..0ed7c477cb0c5a7a9d60571b5ed35c690b4bbac9 100644 (file)
@@ -11,9 +11,9 @@ use Exporter;
 use vars qw(@ISA @EXPORT %dh);
 @ISA=qw(Exporter);
 @EXPORT=qw(&init &doit &complex_doit &verbose_print &error &warning &tmpdir
-           &pkgfile &pkgext &isnative &autoscript &filearray &GetPackages
-           &basename &dirname &xargs %dh &compat &addsubstvar &delsubstvar
-            &excludefile);
+           &pkgfile &pkgext &isnative &autoscript &filearray &filedoublearray
+           &GetPackages &basename &dirname &xargs %dh &compat &addsubstvar
+           &delsubstvar &excludefile);
 
 my $max_compat=4;
 
index 342f4c76b6f2a119855109559d935c2477adee1f..dfb817c50c437785f4894e54d08388757ac5eff1 100644 (file)
@@ -1,3 +1,12 @@
+debhelper (4.0.1) unstable; urgency=low
+
+  * 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
+
+ -- Joey Hess <joeyh@debian.org>  Fri, 12 Apr 2002 23:22:15 -0400
+
 debhelper (4.0.0) unstable; urgency=low
 
   * dh_movefiles has long been a sore point in debhelper. Inherited
index 9dc13bbf5b9f21aff1d24971a6b8c2c7027ff341..2b6bdc70a4050e02275e96249fb30ab7c7a103f6 100755 (executable)
@@ -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";
                }
index 30fde7e2d3071b0dc8b268519caebadaf847da47..cc94843e886f100955308a8678f59156fe8757f4 100755 (executable)
@@ -170,7 +170,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 sub find_so_man {
        # The -s test is becuase a .so file tends to be small. We don't want
        # to open every man page. 1024 is arbitrary.
-       if (! -f $_ || -s $_ > 1024) {
+       if (! -f $_ || -s $_ > 1024 || -s == 0) {
                return;
        }