Skip to content

Commit

Permalink
make check?
Browse files Browse the repository at this point in the history
  • Loading branch information
K1ngfish3r committed Jun 20, 2024
1 parent 06d6acb commit b404084
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions autospec/tarball.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
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

Expand Down Expand Up @@ -83,7 +83,7 @@ def set_tar_prefix(self):
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:
Expand Down Expand Up @@ -146,6 +146,7 @@ def extract_zst(self, extraction_path):
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
Expand Down

0 comments on commit b404084

Please sign in to comment.