Commit fc1da784 authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

Support .zst files by using xtarfile

xtarfile can handle opening .zst files which sadly Python does not
support yet. The xtarfile support however does not support the '|*' flag
nor an encoding flag which seem to be unrequired for parsing the
PKGFINO contents.
parent 4c605a56
......@@ -3,7 +3,7 @@
import sys
import os
import re
import tarfile
import xtarfile as tarfile
import traceback
import internetarchive as ia
......@@ -39,7 +39,7 @@ class ArchiveUploader:
def extract_pkginfo(self, package):
"""Given a package (.tar.xz filename), extract and parse its .PKGINFO file as a dict"""
with, mode='r|*', encoding='utf-8') as tar:
with, mode='r') as tar:
# Manual seeking to find .PKGINFO without having to uncompress the whole package
while True:
f =
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment