Skip to content

Commit 17e48aa

Browse files
committed
Fix error with zst compressed files
They can exist alone without a tar. Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent a89e035 commit 17e48aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extractcode/archive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ def try_to_extract(location, target_dir, extractor):
799799
name='zstd',
800800
filetypes=('zstandard compressed',),
801801
mimetypes=('application/x-zstd',) ,
802-
extensions=('.tar.zst', '.tar.zstd',),
802+
extensions=('.zst', '.zstd',),
803803
kind=regular_nested,
804804
extractors=[extract_zstd],
805805
strict=False

0 commit comments

Comments
 (0)