make check?

This commit is contained in:
K1ngfish3r
2024-06-20 18:33:44 +00:00
committed by Brett T. Warden
parent 5d6bcfe2f7
commit f483b68c90
+3 -2
View File
@@ -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