From f483b68c9090cf5808bda22d821ddc19d9243b25 Mon Sep 17 00:00:00 2001 From: K1ngfish3r Date: Thu, 20 Jun 2024 18:33:44 +0000 Subject: [PATCH] make check? --- autospec/tarball.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/autospec/tarball.py b/autospec/tarball.py index 139b7b6..e114532 100644 --- a/autospec/tarball.py +++ b/autospec/tarball.py @@ -24,8 +24,8 @@ import re import sys import tarfile import zipfile -import zstandard as zstd +import zstandard as zstd import download from util import do_regex, get_sha1sum, print_fatal, write_out @@ -83,7 +83,7 @@ class Source(): else: print_fatal("Not a valid tar file.") sys.exit(1) - + def set_zst_prefix(self): """Determine prefix folder name of tar.zst file.""" with tarfile.open(fileobj=zstd.open(self.path, 'rb'), mode='r|') as content: @@ -146,6 +146,7 @@ class Source(): with tarfile.open(fileobj=zstd.open(self.path, 'rb'), mode='r|') as content: content.extractall(path=extraction_path) + def convert_version(ver_str, name): """Remove disallowed characters from the version.""" # banned substrings. It is better to remove these here instead of filtering