summaryrefslogtreecommitdiff
path: root/dh_gencontrol
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2014-02-20 13:15:08 -0400
committerJoey Hess <joey@kitenet.net>2014-02-20 13:15:08 -0400
commitcc6d1034de024cb0c63a28558bb8815bfc8b100c (patch)
treebf87afadcb2d887062e2a416b77edb1434ba18ca /dh_gencontrol
parentf16d0915b10ff9ef0b0826ae896aaccd6f3ad84f (diff)
downloaddebhelper-cc6d1034de024cb0c63a28558bb8815bfc8b100c.tar.gz
dh_gencontrol: Revert change made in version 4.0.13 that avoided passing -p to dpkg-gencontrol when only operating on one package. There seems to be no benefit to doing that, and it breaks when using Build-Profiles, since while debhelper may know a profile only allows for one package, dpkg-gencontrol may see other packages in the control file.
Diffstat (limited to 'dh_gencontrol')
-rwxr-xr-xdh_gencontrol6
1 files changed, 1 insertions, 5 deletions
diff --git a/dh_gencontrol b/dh_gencontrol
index 32b85637..41e09cbe 100755
--- a/dh_gencontrol
+++ b/dh_gencontrol
@@ -65,11 +65,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
}
# Generate and install control file.
- my @command="dpkg-gencontrol";
- if (getpackages() > 1) {
- push @command, "-p$package";
- }
- doit(@command, "-l$changelog", "-T$substvars",
+ doit("dpkg-gencontrol", "-p$package", "-l$changelog", "-T$substvars",
"-P$tmp",@{$dh{U_PARAMS}});
# This chmod is only necessary if the user sets the umask to