- 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", "-T$substvars",
+ "-P$tmp",@{$dh{U_PARAMS}});