1539 Commits

Author SHA1 Message Date
Timofey Solomko aac304b5b6 Extract LZMA constants into separate file and remove old LZMA decoder 2017-10-29 12:53:17 +03:00
Timofey Solomko 03a459ac31 Update XZ to use new LZMA2 decoder 2017-10-29 12:51:43 +03:00
Timofey Solomko 0b96b8cf50 Update 7-zip to use new LZMA2 decoder 2017-10-29 12:51:29 +03:00
Timofey Solomko 171c08be1a Update LZMA2 to use new LZMA2 decoder 2017-10-29 12:51:18 +03:00
Timofey Solomko 328345cbe3 Add out variable to LZMA2 decoder and change dictionarySize setup 2017-10-29 12:50:58 +03:00
Timofey Solomko bca275f3aa Remove label from the argument of setProperties function 2017-10-29 12:37:28 +03:00
Timofey Solomko 7057475e59 Add LZMA2 decoder 2017-10-29 12:35:17 +03:00
Timofey Solomko b14650c1f5 Changes to new LZMA1 decoder to support LZMA2 decoder 2017-10-29 12:34:56 +03:00
Timofey Solomko b1ff03def7 Use new LZMA decoder in 7-zip 2017-10-29 12:14:10 +03:00
Timofey Solomko 75ecd316a9 Use new LZMA decoder in ZIP 2017-10-29 12:08:15 +03:00
Timofey Solomko d062ffb0ea Use new LZMA decoder in LZMA itself 2017-10-29 12:03:46 +03:00
Timofey Solomko 722805a35d Add temporary version of LZMA1 only decoder 2017-10-29 12:03:29 +03:00
Timofey Solomko 4fa262002f Remake info option for swcomp's tar, zip and 7z commands 2017-10-29 00:47:31 +03:00
Timofey Solomko f2b03d3e42 Restore conformance to Container protocol of SevenZipContainer
Somehow I forgot to this...
2017-10-28 17:58:09 +03:00
Timofey Solomko dc6ad70168 Small updates to comments in a couple of cases 2017-10-28 17:50:00 +03:00
Timofey Solomko 4cab7c1ff3 Sort new enums' cases alphabetically 2017-10-28 17:49:35 +03:00
Timofey Solomko 15f954cd46 Use new compression method enum in ZIP 2017-10-28 17:45:01 +03:00
Timofey Solomko dd54c1ae5c Use new CompressionMethod in GZip 2017-10-28 17:41:59 +03:00
Timofey Solomko e92c5a609c Add CompressionMethod enum for common usage 2017-10-28 17:41:40 +03:00
Timofey Solomko a9dd1c4620 Remove "from" argument labels from various internal inits 2017-10-28 17:11:23 +03:00
Timofey Solomko d7072e732b Use new FileSystemType enum for new fileSystemType property in ZIP 2017-10-28 17:07:57 +03:00
Timofey Solomko 44c0e65d7a Use new FileSystemType enum in GZip 2017-10-28 17:07:36 +03:00
Timofey Solomko 74528268d9 Add FileSystemType enum for use in the entire project 2017-10-28 17:07:00 +03:00
Timofey Solomko 6f8b583d7b Set type regular for tar entries with 0 file type indicator 2017-10-28 13:58:20 +03:00
Timofey Solomko 8b67fca4fe Directories from TAR and ZIP now have nil for their data 2017-10-28 13:44:13 +03:00
Timofey Solomko 86d1026d68 Set version to 4.0.0-dev in some places 2017-10-28 13:16:31 +03:00
Timofey Solomko 1146c215fd Remove some redundant checks in local header validation 2017-10-28 13:05:18 +03:00
Timofey Solomko 9f74cfb793 Move validation into local header and call it from entry info init 2017-10-28 13:02:57 +03:00
Timofey Solomko 4bfdd9a306 Set access and creation time to exttimestamps and NTFS extra fields from localHeader if possible 2017-10-28 13:00:55 +03:00
Timofey Solomko 95f9139d29 Use local header from entry info in getEntryData 2017-10-28 13:00:11 +03:00
Timofey Solomko 4793ddbc47 Load and save local header in ZipEntryInfo 2017-10-28 12:59:44 +03:00
Timofey Solomko 05dc6ce35e Check and skip ZIP's archive extra data record before central directory 2017-10-28 12:49:34 +03:00
Timofey Solomko b3ab5167c2 Rework some ZIP code in preparation for async API 2017-10-28 12:33:45 +03:00
Timofey Solomko 8de32b42c5 Remove unused property ZipLocalHeader.headerSize 2017-10-28 11:30:20 +03:00
Timofey Solomko 7b50be1413 Sort cases in ContainerEntryType alphabetically 2017-10-23 20:17:57 +03:00
Timofey Solomko 72d7d7e764 Add permissions property to ContainerEntryInfo 2017-10-23 20:15:40 +03:00
Timofey Solomko a22a05fedc Add a/c/m times to ContainerEntryInfo protocol.
This also adds accessTime from NTFS extra field in ZipEntryInfo
2017-10-23 20:13:40 +03:00
Timofey Solomko d6c265c8e1 Add ability to use file name embedded into gzip archive 2017-10-22 17:20:55 +03:00
Timofey Solomko f850bd311a Replace fatalErrors with prints and exits 2017-10-22 17:08:51 +03:00
Timofey Solomko 6811bfb554 Remove unused print statement 2017-10-22 17:06:14 +03:00
Timofey Solomko 90a5f9f4e7 Same changes (compress in bz2 command and default output values) for bzip2 command 2017-10-22 17:06:06 +03:00
Timofey Solomko cd86703404 Move compress functionality into gz command; also provide some reasonable default values for output path 2017-10-22 17:00:22 +03:00
Timofey Solomko f55f8231eb Add verbose option to 7zip, tar and zip commands 2017-10-22 16:40:43 +03:00
Timofey Solomko 920a49d32d Update SwiftCLI to 4.0.2 2017-10-22 16:39:26 +03:00
Timofey Solomko 29e27bc31d Update SwiftCLI to 3.1.0 2017-10-22 16:29:32 +03:00
Timofey Solomko f9f4d71ec8 Remove swcomp revision and update swcomp's description 2017-10-22 13:28:30 +03:00
Timofey Solomko c375f2b0d2 Disable some container related code in swcomp 2017-10-21 23:39:33 +03:00
Timofey Solomko 240493a633 Add swcomp sources 2017-10-21 23:22:40 +03:00
Timofey Solomko 0d3369a4e5 Rename some variables for consistency 2017-10-21 13:51:20 +03:00
Timofey Solomko bdfaa3d073 Rework TarContainer.open to first call info() and then get data based on info entries 2017-10-21 13:50:02 +03:00