[debhelper-devel] Bug#778927: Bug#778927: dh_compress: Please do not compress xz compressed files

Bernhard R. Link brlink at debian.org
Sun Feb 22 10:49:48 UTC 2015


Control: tags -1 + pending

* Andreas Tille <tille at debian.org> [150221 22:15]:
> This result is surprising since bz2 compressed files are not gzipped by
> dh_compress.  So please do not compress .xz files.

Should be fixed by the following commit, pushed to master:

diff --git a/debian/changelog b/debian/changelog
index b80d1f3..1105d73 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -82,6 +82,8 @@ debhelper (9.20150101.1) UNRELEASED; urgency=medium
   * autoconf is always passed one of
      --enable-silent-rules (if DH_QUIET is set) or
      --disable-silent-rules (otherwise). (Closes: #551463, #680686)
+  * dh_compress: exclude .xz .lzma and .lz files from compression
+    (Closes: #778927)
 
  -- Niels Thykier <niels at thykier.net>  Thu, 01 Jan 2015 17:24:38 +0100
 
diff --git a/dh_compress b/dh_compress
index 53a6bb1..bbd5847 100755
--- a/dh_compress
+++ b/dh_compress
@@ -121,6 +121,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 				! -iname "*.epub" ! -iname "*.jar" ! -iname "*.zip" \\
 				! -iname "*.odg" ! -iname "*.odp" ! -iname "*.odt" \\
 				! -iname ".htaccess" ! -iname "*.css" \\
+				! -iname "*.xz" ! -iname "*.lz" ! -iname "*.lzma" \\
 				! -iname "*.svg" ! -iname "*.svgz" ! -iname "*.js" \\
 				! -name "index.sgml" ! -name "objects.inv" ! -name "*.map" \\
 				! -name "copyright" 2>/dev/null || true;
	Bernhard R. Link
-- 
F8AC 04D5 0B9B 064B 3383  C3DA AFFC 96D1 151D FFDC




More information about the debhelper-devel mailing list