]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_installdebconf
Merge branch 'master' of ssh://git.debian.org/git/debhelper/debhelper
[debhelper.git] / dh_installdebconf
index b1a23453af55d2f5747f1a6dafead8cbeaf6c2e2..f12c7dad9d4e351e6d6515c7d037d69caf198846 100755 (executable)
@@ -18,9 +18,10 @@ B<dh_installdebconf> [S<I<debhelper options>>] [B<-n>] [S<B<--> I<params>>]
 dh_installdebconf is a debhelper program that is responsible for installing
 files used by the debconf package into package build directories.
 
-It also automatically generates the postrm commands needed to
-interface with debconf. See L<dh_installdeb(1)> for an explanation of how
-that works.
+It also automatically generates the postrm commands needed to interface
+with debconf. The commands are added to the maintainer scripts by
+dh_installdeb. See L<dh_installdeb(1)> for an explanation of how that
+works.
 
 Files named debian/package.config and debian/package.templates are
 installed into the DEBIAN directory in the package build directory.
@@ -100,8 +101,8 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
        }
 
        # I'm going with debconf 0.5 because it was the first
-       # "modern" one.
-       my $debconfdep="debconf (>= 0.5) | debconf-2.0";
+       # "modern" one. udebs just need cdebconf.
+       my $debconfdep=is_udeb($package) ? "cdebconf-udeb" : "debconf (>= 0.5) | debconf-2.0";
        if ($config ne '' || $templates ne '') {
                addsubstvar($package, "misc:Depends", $debconfdep);
        }