]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_installdebconf
r564: * Still run potodebconf after warning about templates.ll files.
[debhelper.git] / dh_installdebconf
index be6fcabfa582b9fe83157158b6b33ab0388b85ce..2e22474d17380cea90aaaa342c0b999672b81dc8 100755 (executable)
@@ -28,6 +28,11 @@ installed into the DEBIAN directory in the package build directory.
 Note that if you use debconf, your package probably needs to depend on it
 (it will be added to ${misc:Depends} by this program).
 
+Note that for your config script to be called by dpkg, your postinst
+needs to source debconf's confmodule. dh_installdebconf does not
+install this statement into postinst automatically as it it too hard to
+do it right.
+
 =head1 LOCALIZED TEMPLATE FILES
 
 Debconf also supports localized template files, and this program has some
@@ -92,9 +97,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
                        if (@trans) {
                                warning "ignoring debian/templates.ll files in favour of debian/po directory";
                        }
-                       else {
-                               complex_doit("po2debconf @extraparams $templates > $tmp/DEBIAN/templates");
-                       }
+                       complex_doit("po2debconf @extraparams $templates > $tmp/DEBIAN/templates");
                }
                elsif (@trans) {
                        complex_doit("debconf-mergetemplate --drop-old-templates @extraparams @trans $templates > $tmp/DEBIAN/templates");