Timofey Solomko
cc217f8f93
[TAR] The names of created special entries are now quasi-unique
2021-07-25 15:54:00 +03:00
Timofey Solomko
af516f4090
[TAR] Add several asserts to TarEntryInfoProvider.next()
2021-07-24 15:28:37 +03:00
Timofey Solomko
5012788be4
[TAR] Rename ByteReader+Tar to LittleEndianByteReader+Tar
2021-07-24 15:28:19 +03:00
Timofey Solomko
8415cee9ae
[TAR] Fix missing return statement in TarContainer.create
2021-07-24 15:15:29 +03:00
Timofey Solomko
d523f6ec32
[TAR] Adjust old tar creation tests to also check for format
2021-07-24 15:01:56 +03:00
Timofey Solomko
f1a635c98f
[Tests] Add tests for creation of gnu TAR containers
2021-07-24 15:01:30 +03:00
Timofey Solomko
b344fe1f1f
[TAR] Write ustar fields also for gnu format for
2021-07-24 15:00:13 +03:00
Timofey Solomko
753839f195
[TAR] Implement gnu tar headers fields creation
2021-07-24 14:33:40 +03:00
Timofey Solomko
5de2bc5768
Change conversion of utf8 strings to data without optional unwraps
2021-07-24 14:26:14 +03:00
Timofey Solomko
3e96a84f62
[TAR] Add a docs note to TarCreateError about it being never used
2021-07-24 14:23:10 +03:00
Timofey Solomko
505f35fc28
[TAR] Make TarContainer.create non-throwing by removing the usage of TarCreateError.utf8NonEncodable
2021-07-24 14:21:27 +03:00
Timofey Solomko
c87e8bece7
[TAR] Remove unused generateContainerData function from TarEntry[Info]
2021-07-24 14:16:15 +03:00
Timofey Solomko
017afa06b8
[TAR] Add TarContainer.create(from:force:) function which can be used to specify tar format
...
In addition use this new function in the old TarContainer.create(from:) function with .pax format.
2021-07-24 14:15:35 +03:00
Timofey Solomko
7c54d2b991
[TAR] Implement TarHeader.generateContainerData
2021-07-24 14:10:04 +03:00
Timofey Solomko
082aaf5092
[TAR] Reorder and comment properties of TarHeader to clarify used formats
2021-07-24 14:09:34 +03:00
Timofey Solomko
11a2054498
[TAR] Move Data extensions from TarEntryInfo into separate file
...
In addition Data.append(tarString:maxLength:) has been modified to not be throwing.
2021-07-24 13:56:52 +03:00
Timofey Solomko
0bc1987500
[TAR] Add two new initializers to TarHeader
...
One creates a header based on TarEntryInfo, and the second one creates a header for special entries like pax headers.
2021-07-23 16:52:42 +03:00
Timofey Solomko
bdf22b2cc5
[TAR] Add a Data extension function which pads to 512 bytes and appends
2021-07-23 16:40:21 +03:00
Timofey Solomko
1730eabc1c
[TAR] TarEntryInfo (internal) init is no longer throwing
2021-07-23 15:18:39 +03:00
Timofey Solomko
1ec17a3137
[TAR] Rename several properties of TarHeader for consistency
2021-07-22 23:52:54 +03:00
Timofey Solomko
a65f66c473
[TAR] Update TarEntryInfo.init and TarEntryInfoProvider to use TarHeader
...
Temporarily we had to leave the code that is being moved to TarHeader (such as TarEntryInfo.specialEntryType and blockStartIndex properties), because the format and create functionalities of TAR currently rely on it being present in TarEntryInfo to work. However, we were able to remove TarEntryInfo.SpecialEntryType enum, and use the TarHeader's version of it.
2021-07-22 23:49:47 +03:00
Timofey Solomko
0815fee187
[TAR] Rename TarEntryInfoProvider.byteReader to reader
2021-07-22 23:08:19 +03:00
Timofey Solomko
64a85690a3
[XZ] Remove wrong doc comment for a private processPadding function
2021-07-21 20:22:55 +03:00
Timofey Solomko
bc3362c568
[TAR] Add TarHeader struct
2021-07-21 20:22:20 +03:00
Timofey Solomko
cb8a6738a0
[Common] Change DeltaFilter from final class to enum
2021-07-21 19:47:30 +03:00
Timofey Solomko
cb730a334d
[LZMA] Change LZMAConstants from struct to enum
2021-07-21 19:47:05 +03:00
Timofey Solomko
7646ec34a1
[TAR] Remove pre-Swift 5.0 crash workaround
2021-07-21 19:34:48 +03:00
Timofey Solomko
aba14af8c5
Small changes to code comments
2021-07-17 11:14:53 +03:00
Timofey Solomko
d3d2cdbac2
utils.py: remove watchos simulator option
2021-07-17 11:13:42 +03:00
Timofey Solomko
b05383e0cd
CI: use swift 5.4.2 on linux and windows
2021-07-17 11:13:24 +03:00
Timofey Solomko
1ae8873e4c
README: fix link to SPM docs
2021-06-27 15:31:09 +03:00
Timofey Solomko
5245a73a6c
Merge branch 'hotfix-4.5.11' into develop
2021-06-12 18:53:45 +03:00
Timofey Solomko
594cc1968e
Merge branch 'hotfix-4.5.11'
4.5.11
2021-06-12 18:50:54 +03:00
Timofey Solomko
ff5732a714
Prepare for 4.5.11 release
2021-06-12 18:50:39 +03:00
Timofey Solomko
6203b65595
[CI] Add github pages deployment stage to azp
2021-06-12 18:39:35 +03:00
Timofey Solomko
ab569e8261
[docs] Don't clean docs directory in jazzy config
2021-06-12 18:39:35 +03:00
Timofey Solomko
1fa0abce06
[docs] Add docs for LZMAProperties.init()
2021-06-12 18:39:35 +03:00
Timofey Solomko
b4a75e101d
README updates: mention Windows support, update section about Carthage difficulties during development, remove broken gh project link, fix a typo
2021-06-12 13:58:16 +03:00
Timofey Solomko
b481310c60
[CI] Add building on windows with Swift 5.4
2021-06-11 23:30:02 +03:00
Timofey Solomko
6a8413e62c
[Tests] Update TAR empty container test to have only 1024 bytes of zeros
...
This more closely corresponds to the notion of an empty container, containing only the EOF blocks.
2021-06-09 21:15:58 +03:00
Timofey Solomko
f766fbc7ed
[TAR] Add a comment explaining why the new data indices check uses strict inequalitites
2021-06-09 21:14:58 +03:00
Timofey Solomko
fe816ebb71
utils.py: remove install-linux and script-linux sub-subcommands
...
They are no longer used, since we can't use them when we use docker containers for linux ci.
(cherry picked from commit 45c055dc0c )
2021-06-08 22:52:03 +03:00
Timofey Solomko
358067b43a
Add AZP badge to README
2021-06-08 22:51:54 +03:00
Timofey Solomko
a2fa2cbe34
[CI] Add AZP config (with Swift 4.2), remove all but Swift 5.4 on macos from travis config
2021-06-08 20:30:23 +03:00
Timofey Solomko
d197d76769
[TAR] Check if the data is truncated before extracting entry data
2021-06-08 20:26:42 +03:00
Timofey Solomko
45c055dc0c
utils.py: remove install-linux and script-linux sub-subcommands
...
They are no longer used, since we can't use them when we use docker containers for linux ci.
2021-05-27 16:40:17 +03:00
Timofey Solomko
1c9533df74
CI: remove all stages from travis but macos11-swift5.4 (since it is impossible to use it due to the free plan limit), exclude test releases tags on azp, use containers for swift on linux on azp, enable building with swift 5.4.1 on linux since the issue is fixed
2021-05-27 16:39:00 +03:00
Timofey Solomko
c19694aa12
Merge branch 'hotfix-4.5.10' into develop
2021-05-23 00:10:17 +03:00
Timofey Solomko
add1e6111f
Merge branch 'hotfix-4.5.10'
4.5.10
2021-05-23 00:06:00 +03:00
Timofey Solomko
233e0c8042
Prepare for 4.5.10 release
2021-05-22 23:48:27 +03:00