ndmitchell / hoogle

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

Subsequent runs of 'hoogle data' fail without -r option #28

Closed khorser closed 11 years ago

khorser commented 11 years ago

"gzip --decompress --force .." </> takeFileName out <.> "tar.gz" deletes original .tar.gz file so subsequent runs of 'hoogle data' without -r option will fail on this step. I see two options here: either skip ungzipping if .tar is present and .tar.gz is not, or keep .tar.gz.

ndmitchell commented 11 years ago

An easier option would probably be to pass --keep to gzip, that way it won't delete the .tar.gz. I'll aim to check in a fix for this at the weekend, unless someone sends me a pull request first. Thanks for reporting the issue.

ndmitchell commented 11 years ago

Fixed in #29