diff options
author | Niels Thykier <niels@thykier.net> | 2019-09-01 06:50:17 +0000 |
---|---|---|
committer | Niels Thykier <niels@thykier.net> | 2019-09-01 06:50:56 +0000 |
commit | e2ba7772649b1036a1ae9b45e05b061013936a78 (patch) | |
tree | 049e582cdae7cd1cdd180027370c341ffd75ef7d /dh | |
parent | 0ee2559c19196cb0a968d8e83eae438910163b96 (diff) | |
download | debhelper-e2ba7772649b1036a1ae9b45e05b061013936a78.tar.gz |
dh: Fix bug in binary-indep in compat 5-12
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'dh')
-rwxr-xr-x | dh | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -668,8 +668,10 @@ sub _compute_addons { push(@addon_requests, '+elf-tools'); } elsif (compat(12, 1)) { # In compat 12 and earlier, we only inject the sequence if there are arch - # packages present. - push(@addon_requests, '+elf-tools') if getpackages('arch'); + # packages present and the sequence requires it. + if (getpackages('arch') and $sequence_type ne SEQUENCE_TYPE_INDEP_ONLY) { + push(@addon_requests, '+elf-tools'); + } } else { # In compat 13, we always inject the addon if not explicitly requested and # then flag it as arch_only |