packages feed

tar 0.5.0.0 → 0.5.0.1

raw patch · 4 files changed

+21/−5 lines, 4 filesdep ~basedep ~directory

Dependency ranges changed: base, directory

Files

Codec/Archive/Tar.hs view
@@ -124,6 +124,7 @@   mapEntries,   mapEntriesNoFail,   foldEntries,+  foldlEntries,   unfoldEntries,    -- * Error handling@@ -139,7 +140,6 @@    -- ** Errors from reading tar files   FormatError(..),-  #ifdef TESTS   prop_write_read_ustar,
Codec/Archive/Tar/Unpack.hs view
@@ -26,8 +26,19 @@ import System.Directory          ( createDirectoryIfMissing, copyFile ) import Control.Exception-         ( Exception, throwIO, catch )+         ( Exception, throwIO )+#if MIN_VERSION_directory(1,2,3)+import System.Directory+         ( setModificationTime )+import Data.Time.Clock.POSIX+         ( posixSecondsToUTCTime )+import Control.Exception+         ( catch )+import System.IO.Error+         ( isPermissionError )+#endif + -- | Create local files and directories based on the entries of a tar archive. -- -- This is a portable implementation of unpacking suitable for portable@@ -105,7 +116,7 @@ #if MIN_VERSION_directory(1,2,3) -- functionality only supported as of directory-1.2.3.x setModTime path t =-    setModificationTime path (posixSecondsToUTCTime t)+    setModificationTime path (posixSecondsToUTCTime (fromIntegral t))       `catch` \e -> if isPermissionError e then return () else throwIO e #else setModTime _path _t = return ()
changelog.md view
@@ -1,3 +1,7 @@+0.5.0.1 Duncan Coutts <duncan@community.haskell.org> January 2016++  * Fix compatability with directory-1.2.3++ 0.5.0.0 Duncan Coutts <duncan@community.haskell.org> January 2016    * Work with old version of bytestring (using bytestring-builder package).
tar.cabal view
@@ -1,5 +1,5 @@ name:            tar-version:         0.5.0.0+version:         0.5.0.1 license:         BSD3 license-file:    LICENSE author:          Duncan Coutts <duncan@community.haskell.org>@@ -24,7 +24,8 @@ build-type:      Simple cabal-version:   >=1.8 extra-source-files: changelog.md-tested-with:     GHC ==7.4.2, GHC ==7.6.3, GHC ==7.8.4, GHC ==7.10.2+tested-with:     GHC==6.10.4, GHC==6.12.3, GHC==7.0.4, GHC==7.2.2, GHC==7.4.2,+                 GHC==7.6.3,  GHC==7.8.4, GHC==7.10.2, GHC==8.1  source-repository head   type: git