Re: *-doc package should not gzip PDF file
Preben Randhol <randhol@pvv.org> wrote:
> Osamu Aoki <osamu@debian.org> wrote:
> > If anyone wants this to be fixed following should happen.
> >
> > * Write a patch to the debhelper gzip text/pdf/ps file logic
> > - do not compress if the package is *-doc and file extension is
> > pdf.
> I have no idea how debhelper works. Are there anybody out there that
> can help with getting it to stop gzipping files in -doc?
dh_compress already has a list of file extensions where (re-)compressing
doesn't make sense. I've submitted Bug#375406 with a patch (below) to
add .pdf to the list.
- Jim Van Zandt
--- dh_compress-orig 2006-06-25 15:37:11.000000000 -0400
+++ dh_compress 2006-06-25 15:39:08.000000000 -0400
@@ -102,6 +102,7 @@
! -iname "*.tgz" ! -iname "*.z" ! -iname "*.bz2" \\
! -iname "*-gz" ! -iname "*-z" ! -iname "*_z" \\
! -iname "*.jar" ! -iname "*.zip" ! -iname "*.css" \\
+ ! -iname "*.pdf" \\
! -name "copyright" 2>/dev/null || true;
find usr/X11R6/lib/X11/fonts usr/share/fonts/X11 -type f -name "*.pcf" 2>/dev/null || true;
Reply to: