summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2010-01-31 14:34:51 -0500
committerJoey Hess <joey@gnu.kitenet.net>2010-01-31 14:34:51 -0500
commit67e051e9c48096391f1e070c7190a11f09c28d2c (patch)
treebb24a7bb282a0bf9a6519d3c443c7b58ae337a3d
parentbd99b307fbdd8f1b2047ece93e4c63fa6c7bd841 (diff)
dh_compress: Avoid compressing images in /usr/share/info. Closes: #567586
-rw-r--r--debian/changelog6
-rwxr-xr-xdh_compress5
2 files changed, 10 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index 552e284..1a879f5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+debhelper (7.4.13) UNRELEASED; urgency=low
+
+ * dh_compress: Avoid compressing images in /usr/share/info. Closes: #567586
+
+ -- Joey Hess <joeyh@debian.org> Sun, 31 Jan 2010 14:34:30 -0500
+
debhelper (7.4.12) unstable; urgency=low
* dh_bugfiles: Doc typo. Closes: #563269
diff --git a/dh_compress b/dh_compress
index efeca8a..9db01e4 100755
--- a/dh_compress
+++ b/dh_compress
@@ -102,7 +102,10 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
# complete list of such extensions: ".gz", ".z", ".taz",
# ".tgz", "-gz", "-z", "_z"
push @files, split(/\n/,`
- find usr/info usr/share/info usr/man usr/share/man usr/X11*/man -type f ! -name "*.gz" 2>/dev/null || true;
+ find usr/info usr/share/info usr/man usr/share/man usr/X11*/man -type f ! -iname "*.gz" \\
+ ! -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*" \\) \\
\\( -name changelog.html -or ! -iname "*.htm*" \\) \\
! -iname "*.gif" ! -iname "*.png" ! -iname "*.jpg" \\