Skip to content

Commit 47b2fac

Browse files
committed
fixup! feat(handler): add multi-part gzip handler.
1 parent a405de3 commit 47b2fac

File tree

9 files changed

+10
-20
lines changed

9 files changed

+10
-20
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:85481ea8c4c48236a25304d337d0b3f10900aac26194d15bba913bec90d18c3a
2+
oid sha256:7a329453dfdaf817fa1ff384227575bedc18a5d8ca6c014132dc77ac6849be2d
33
size 10240
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:d7decfa608a7decfc2ab1600ee52707caff556bd911dd6d8613baa43ac38b618
3-
size 49
2+
oid sha256:ef248dcb11bd9196aeff4f075ec6f10dd44f46d66c4d827a0a07f3b1ede03af6
3+
size 35

tests/integration/compression/gzip/__output__/multi-volume-split-then-gzip.tar_extract/one.txt.gz.aa_extract/one.txt.aa

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:3b2dadf5e5ed42b7e146a8eb24f3cba3593b579198a4d06e343c87c31454181e
3-
size 49
2+
oid sha256:3813261d2ae514bc31593c166c53391312d07507a5c952b9d7b059a809ec747a
3+
size 38

tests/integration/compression/gzip/__output__/multi-volume-split-then-gzip.tar_extract/one.txt.gz.ab_extract/one.txt.ab

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:97aa0d8b4b0aedef85fb1c6b902da2ea3dcf57ea94045e396b6dac68d796ffe8
2+
oid sha256:7f0d4cd80a4203aef29742919f572c9624660864bdb8bd87eb2050575829f386
33
size 38

tests/integration/compression/gzip/__output__/multi-volume-split-then-gzip.tar_extract/one.txt.gz.ac_extract/one.txt.ac

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:b7705c86fc28729ea1f35b4453760a85b5b4e100e64b346d3dd13b9dd9da8f6f
3+
size 21

unblob/handlers/compression/gzip.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,7 @@ def calculate_multifile(self, file: Path) -> Optional[MultiFile]:
174174
if file != paths[0]:
175175
return None
176176

177-
valid_gzips = sum([self.is_valid_gzip(path) for path in paths])
178-
179-
# the presence of multiple valid gzips with the same stem would mean each volume
180-
# is independently compressed.
181-
if valid_gzips == 1:
177+
if self.is_valid_gzip(file):
182178
files_size = sum(path.stat().st_size for path in paths)
183179
logger.debug(
184180
"Multi-volume files", paths=paths, files_size=files_size, _verbosity=2

0 commit comments

Comments
 (0)