From: Joey Hess Date: Sat, 20 Aug 2011 19:13:56 +0000 (-0400) Subject: dh_compress: Don't compress _sources documentation subdirectory as used by python... X-Git-Tag: 8.9.5~2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=1c928d2d414cc0423429ad7b8b25cd981d2eeb75;p=debhelper.git dh_compress: Don't compress _sources documentation subdirectory as used by python-sphinx. Closes: #637492 Thanks, Jakub Wilk --- diff --git a/debian/changelog b/debian/changelog index ffc3078..e449996 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +debhelper (8.9.5) UNRELEASED; urgency=low + + * dh_compress: Don't compress _sources documentation subdirectory + as used by python-sphinx. Closes: #637492 + Thanks, Jakub Wilk + + -- Joey Hess Sat, 20 Aug 2011 15:13:01 -0400 + debhelper (8.9.4) unstable; urgency=low * dh: The --before --after --until and --remaining options are deprecated. diff --git a/dh_compress b/dh_compress index 3eb6ff2..ff98cb9 100755 --- a/dh_compress +++ b/dh_compress @@ -108,7 +108,9 @@ foreach my $package (@{$dh{DOPACKAGES}}) { ! -iname "*.gif" ! -iname "*.png" ! -iname "*.jpg" \\ ! -iname "*.jpeg" \\ 2>/dev/null || true; - find usr/share/doc -type f \\( -size +4k -or -name "changelog*" -or -name "NEWS*" \\) \\ + find usr/share/doc \\ + \\( -type d -name _sources -prune -false \\) -o \\ + -type f \\( -size +4k -or -name "changelog*" -or -name "NEWS*" \\) \\ \\( -name changelog.html -or ! -iname "*.htm*" \\) \\ ! -iname "*.gif" ! -iname "*.png" ! -iname "*.jpg" \\ ! -iname "*.jpeg" ! -iname "*.gz" ! -iname "*.taz" \\