X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dh_gencontrol;h=941c9a8c71cbfaa9bee59cd894faa3e8ac3d1474;hb=3c36c2532c3907f0a315d9010654176e8e9fc319;hp=fcb91845a6957e8caf64c6ad6c651db7346e0349;hpb=89e2b47d7d18354a701733b401e613ed84acd8ee;p=debhelper.git diff --git a/dh_gencontrol b/dh_gencontrol index fcb9184..941c9a8 100755 --- a/dh_gencontrol +++ b/dh_gencontrol @@ -53,8 +53,12 @@ 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"; + } + 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.