Permalink
Commits on Jan 30, 2011
  1. Version bump to 0.1.1.7.

    committed Jan 30, 2011
  2. Correctly calculate length of file paths.

    Be sure to use zipifyFilePath and convert to UTF8 before
    calculating length.
    committed Jan 30, 2011
  3. Fixed problems with zipifyFilePath:

    + Don't ever put drive in zip file path!
    + Don't put leading "./" supplied by some versions of
      System.FilePath.splitDirectories.
    committed Jan 30, 2011
Commits on Dec 8, 2010
  1. Added Homepage (repository).

    committed Dec 8, 2010
Commits on Jan 6, 2010
  1. Version bump to 0.1.1.6

    jgm@berkeley.edu committed Jan 6, 2010
  2. epochTimeToMSDOSDateTime: return minimum DOS datetime for earlier epo…

    …ch times.
    
    The previous behavior was just to crash.  Epoch times start in 1970, while
    DOS datetimes start in 1980.  Returning the minimum seems the best solution,
    since you simply can't create a zip archive entry with an earlier time.
    This is also the solution used by zip30.
    
    Thanks to Radoslav Dorcik for reporting.
    jgm@berkeley.edu committed Jan 6, 2010
Commits on Dec 31, 2009
  1. Bumped version to 0.1.1.5

    jgm@berkeley.edu committed Dec 31, 2009
  2. Fixed warnings uncovered by GHC 6.12.

    jgm@berkeley.edu committed Dec 31, 2009
Commits on Oct 20, 2009
  1. Added explicit upper bound for base version

    jgm@berkeley.edu committed Oct 20, 2009
  2. Removed -O2 option

    jgm@berkeley.edu committed Oct 20, 2009
  3. Version bump in Zip executable

    jgm@berkeley.edu committed Oct 20, 2009
  4. Version bump to 0.1.1.4

    jgm@berkeley.edu committed Oct 20, 2009
  5. Handle data descriptor record

    OpenOffice-created zip archives sometimes use the "data descriptor record"
    to store checksums and lengths.  getLocalFile now checks the general purpose
    bit flags to see if there is a data descriptor record; if there is, it
    ignores the compressed size field and instead reads data until the data
    descriptor record is encountered.
    
    This patch should fix problems reading ODS and other OpenOffice created
    zip archives.  Thanks to Joel Lehtone for calling the problem to my attention.
    jgm@berkeley.edu committed Oct 20, 2009
Commits on Jan 5, 2009
  1. Version bump to 0.1.1.3

    jgm@berkeley.edu committed Jan 5, 2009
  2. Removed note in LICENSE about Data.Hash.CRC32.GZip, which is no longe…

    …r present.
    jgm@berkeley.edu committed Jan 5, 2009
  3. Use -O2 to build the library.

    jgm@berkeley.edu committed Jan 5, 2009
Commits on Jan 4, 2009
  1. Performance improvements due to Eugene Kirpichov.

    + getFileHeader now returns a Data.Map structure instead of a
      list [(Word32,ByteString)].
    + The inefficient CRC32 computation has been replaced by an
      efficient one from Kirpichov's new 'digest' package.
    + Removed Data.Hash.CRC32.GZip
    + Version bump to 0.1.1.2.
    jgm@berkeley.edu committed Jan 4, 2009
Commits on Oct 19, 2008
  1. Version bump to 0.1.1.1

    jgm@berkeley.edu committed Oct 19, 2008
  2. Correctly handle drive in absolute paths.

    Patch to zipifyFilePath from JP Moresmau.
    Previously, when creating a zip file using absolute paths, a slash was
    inserted between the drive (c:\) and the first directory. So other tools
    could not open the generated file.
    jgm@berkeley.edu committed Oct 19, 2008
Commits on Sep 10, 2008
  1. Added >= 0.3.1 to utf8-string dependency in zip-archive.cabal

    jgm@berkeley.edu committed Sep 10, 2008
Commits on Sep 3, 2008
  1. bump version to 0.1

    jgm@berkeley.edu committed Sep 3, 2008
  2. Improved haddock docs.

    jgm@berkeley.edu committed Sep 3, 2008
  3. Major refactoring and simplification of API

    + Shorter names:  ZipArchive -> Archive, ZipEntry -> Entry
    + Compress/decompress functions are no longer exposed;
      they shouldn't be needed since toEntry and fromEntry
      handle compression and decompression
    + Added toEntry, which creates an entry with a specificed
      path, timestamp, and contents
    + Simplified readEntry (using toEntry), added verbose options
    + Modified writeEntry to handle directories correctly; added
      verbose options
    + Simplified addFilesToArchive using the new readEntry
    + Simplified extractFilesFromArchive using the new writeEntry
    + Modified Tests.hs and Zip.hs accordingly
    jgm@berkeley.edu committed Sep 3, 2008
Commits on Sep 2, 2008
  1. Changed contentsOfZipEntry to fromZipEntry

    Also, return a bytestring rather than an Either,
    and raise an exception if CRC32 mismatch.
    jgm@berkeley.edu committed Sep 2, 2008
  2. Removed defaultZipEntry

    jgm@berkeley.edu committed Sep 2, 2008
Commits on Aug 27, 2008
  1. Modified testsuite: no time conversion tests.

    Define Eq for ZipArchive so that two epoch times that convert to the
    same MSDOS datetime are regarded as equal.
    jgm@berkeley.edu committed Aug 27, 2008
  2. Don't derive Eq for ZipArchive.

    jgm@berkeley.edu committed Aug 27, 2008
  3. Store timestamp as epoch time rather than MSDOS datetime.

    Don't expose MSDOS datetime conversion functions in API.
    jgm@berkeley.edu committed Aug 27, 2008
Commits on Aug 26, 2008
  1. Don't include "." directory as a separate entry.

    jgm@berkeley.edu committed Aug 26, 2008
  2. Only use compression if it reduces size.

    jgm@berkeley.edu committed Aug 26, 2008
  3. Changed ZipOptions -> ZipOption.

    jgm@berkeley.edu committed Aug 26, 2008
  4. Minor haddock changes.

    jgm@berkeley.edu committed Aug 26, 2008