ndmitchell / hoogle

Haskell API search engine
http://hoogle.haskell.org/
Other
738 stars 134 forks source link

Keep original .tar.gz when ungzipping #29

Closed khorser closed 11 years ago

khorser commented 11 years ago

Hi. This should resolve #29. Since older versions of gzip don't have --keep option I'm using --stdout instead

ndmitchell commented 11 years ago

Thanks for the patch! Reading the docs it sounds like --stdout would write the decompressed stream to stdout, instead of writing it to a .tar file. But if you've tried it in practice and it works then I'll happily merge.

khorser commented 11 years ago

Right, --stdout writes to stdout, which is why I'm redirecting its output to .tar. Tested on Windows with gzip from UnxUtils and gnuwin32 and on Linux.

ndmitchell commented 11 years ago

I hadn't spotted that (the perils of code review on a iPhone!). Thanks a lot, much appreciated.