summaryrefslogtreecommitdiff
path: root/dh_gencontrol
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2015-08-22 19:33:55 +0200
committerNiels Thykier <niels@thykier.net>2015-08-22 19:35:30 +0200
commit6f334f49e3dab138e0189f2bd6db822b3a7d5e5a (patch)
tree19d62aa946377c0f43a239c6bb600f37479ce298 /dh_gencontrol
parentee516f3226ddff2e8a7c6cfd3004af2ac7a07c8c (diff)
downloaddebhelper-6f334f49e3dab138e0189f2bd6db822b3a7d5e5a.tar.gz
dh_gencontrol: Do not duplicate build-ids in the original package
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'dh_gencontrol')
-rwxr-xr-xdh_gencontrol6
1 files changed, 3 insertions, 3 deletions
diff --git a/dh_gencontrol b/dh_gencontrol
index 8166a577..2a009519 100755
--- a/dh_gencontrol
+++ b/dh_gencontrol
@@ -121,9 +121,9 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
doit("chmod","0644","${ddeb_tmp}/DEBIAN/control");
doit("chown","0:0","${ddeb_tmp}/DEBIAN/control");
- }
-
- if ($build_ids) {
+ } elsif ($build_ids) {
+ # Only include the build-id if there is no ddeb (if there is a
+ # ddeb, the build-ids into the ddeb's control file)
push(@debug_info_params, "-DX-Build-Ids=${build_ids}");
}