Update deps; move from pyzst to underlying backports.zstd

This commit is contained in:
Christoph Reiter
2025-12-27 10:54:11 +01:00
parent 14902c56a8
commit d1bbeecc5e
6 changed files with 203 additions and 229 deletions

View File

@@ -8,7 +8,7 @@ from typing import Any
from ..appconfig import REQUEST_TIMEOUT
from ..appstate import (DepType, Package, Repository, Source, get_repositories,
state)
from ..exttarfile import ExtTarFile
from ..exttarfile import tarfile
from ..utils import logger
from .utils import check_needs_update, get_content_cached
@@ -49,7 +49,7 @@ async def parse_repo(repo: Repository, include_files: bool = True) -> dict[str,
data = await get_content_cached(repo_url, timeout=REQUEST_TIMEOUT)
with io.BytesIO(data) as f:
with ExtTarFile.open(fileobj=f, mode="r") as tar:
with tarfile.TarFile.open(fileobj=f, mode="r") as tar:
packages: dict[str, list] = {}
for info in tar:
package_name = info.name.split("/", 1)[0]