From 030b3d807fb91a5bb7e61b3b47c8ca971de880ef Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 22 Dec 2010 14:49:18 -0400 Subject: [PATCH] dh_compress: Javascript files are not compressed, as these go with (uncompressed) html files. Closes: #603553 --- debian/changelog | 2 ++ dh_compress | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 2eae968..c5e9746 100644 --- a/debian/changelog +++ b/debian/changelog @@ -30,6 +30,8 @@ debhelper (8.1.0) UNRELEASED; urgency=low * dh_installdocs: Clarify that debian/README.Debian and debian/TODO are only installed into the first package listed in debian/control. Closes: #606036 + * dh_compress: Javascript files are not compressed, as these go with + (uncompressed) html files. Closes: #603553 [ Valery Perrin ] * update french translation. diff --git a/dh_compress b/dh_compress index 14dfdb3..51a4e74 100755 --- a/dh_compress +++ b/dh_compress @@ -24,7 +24,7 @@ to the new files. By default, B compresses files that Debian policy mandates should be compressed, namely all files in F, F, files in F that are larger than 4k in size, -(except the F file, F<.html> and F<.css> files, image files, and files +(except the F file, F<.html> and other web files, image files, and files that appear to be already compressed based on their extensions), and all F files. Plus PCF fonts underneath F @@ -115,7 +115,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) { ! -iname "*.tgz" ! -iname "*.z" ! -iname "*.bz2" \\ ! -iname "*-gz" ! -iname "*-z" ! -iname "*_z" \\ ! -iname "*.jar" ! -iname "*.zip" ! -iname "*.css" \\ - ! -iname "*.svg" ! -iname "*.svgz" \\ + ! -iname "*.svg" ! -iname "*.svgz" ! -iname "*.js" \\ ! -name "index.sgml" \\ ! -name "copyright" 2>/dev/null || true; find usr/share/fonts/X11 -type f -name "*.pcf" 2>/dev/null || true; -- 2.39.2