]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_gencontrol
r1655: * Added udeb support, as pioneered by di-packages-build. Understands
[debhelper.git] / dh_gencontrol
index b9aaefb490d59873823e1fe703268d7872af7ff5..7614fa696d2ca6fbcc93c5e8ad3f5f2d0096e946 100755 (executable)
@@ -54,9 +54,12 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 
        # Generate and install control file.
        my @command="dpkg-gencontrol";
-       if (GetPackages() > 1) {
+       if (getpackages() > 1) {
                push @command, "-p$package";
        }
+       if (is_udeb($package)) {
+               push @command, "-n".udeb_filename($package);
+       }
        doit(@command, "-l$changelog", "-isp", "-Tdebian/${ext}substvars", 
                "-P$tmp",@{$dh{U_PARAMS}});