X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dh_gencontrol;h=7614fa696d2ca6fbcc93c5e8ad3f5f2d0096e946;hb=71e1fcd2b80e45cedcf10a9ccf572fad6430fc40;hp=ae8605a6c7d30160db647717191546381d228c3a;hpb=e7f5e45df1ff9c01e2565938109ac1df7fa9026e;p=debhelper.git diff --git a/dh_gencontrol b/dh_gencontrol index ae8605a..7614fa6 100755 --- a/dh_gencontrol +++ b/dh_gencontrol @@ -11,7 +11,7 @@ use Debian::Debhelper::Dh_Lib; =head1 SYNOPSIS - dh_gencontrol [debhelper options] [-uparams] [-- params] +B [S>] [S I>] =head1 DESCRIPTION @@ -53,19 +53,26 @@ foreach my $package (@{$dh{DOPACKAGES}}) { } # Generate and install control file. - doit("dpkg-gencontrol","-l$changelog","-isp","-p$package", - "-Tdebian/${ext}substvars", "-P$tmp",@{$dh{U_PARAMS}}); + my @command="dpkg-gencontrol"; + 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}}); # This chmod is only necessary if the user sets the umask to # something odd. doit("chmod","644","$tmp/DEBIAN/control"); - doit("chown","0.0","$tmp/DEBIAN/control"); + doit("chown","0:0","$tmp/DEBIAN/control"); } =head1 SEE ALSO -L +L This program is a part of debhelper.