diff options
author | Niels Thykier <niels@thykier.net> | 2019-02-23 11:26:30 +0000 |
---|---|---|
committer | Niels Thykier <niels@thykier.net> | 2019-02-23 11:26:30 +0000 |
commit | 2b14bbd185f5dc3f302bccf79225e486ae271167 (patch) | |
tree | 5b84e4af38481e86522b10caaab9697d6d605a08 /dh_compress | |
parent | aeb5628b7276be04ce6dcfd8ff78fe497a367a48 (diff) | |
download | debhelper-2b14bbd185f5dc3f302bccf79225e486ae271167.tar.gz |
dh_compress: Avoid compressing examples shipped for the doc-main package
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'dh_compress')
-rwxr-xr-x | dh_compress | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/dh_compress b/dh_compress index abba978d..d801d833 100755 --- a/dh_compress +++ b/dh_compress @@ -91,7 +91,12 @@ on_pkgs_in_parallel { # structure that will be effected. next unless -d $tmp; my $ignore_doc_dirs = '-name _sources'; - $ignore_doc_dirs .= qq{ -o -path "usr/share/doc/$package/examples"} if not compat(11); + if (not compat(11)) { + my $target_package = compute_doc_main_package($package); + $ignore_doc_dirs .= qq{ -o -path "usr/share/doc/${package}/examples"}; + $ignore_doc_dirs .= qq{ -o -path "usr/share/doc/${target_package}/examples"} + if $target_package and $target_package ne $package; + } $olddir = getcwd() if not defined $olddir; verbose_print("cd $tmp"); chdir($tmp) || error("Can't cd to $tmp: $!"); |