Use greater than or equal for version check

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
Andrew Murray 2024-12-18 08:54:56 +11:00 committed by GitHub
parent 779715277e
commit f4d0474d98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -521,10 +521,10 @@ def extract_dep(url: str, filename: str, prefs: dict[str, str]) -> None:
if sources_dir_abs != member_prefix:
msg = "Attempted Path Traversal in Tar File"
raise RuntimeError(msg)
if sys.version_info <= (3, 11):
tgz.extractall(sources_dir)
else:
if sys.version_info >= (3, 12):
tgz.extractall(sources_dir, filter="data")
else:
tgz.extractall(sources_dir)
else:
msg = "Unknown archive type: " + filename
raise RuntimeError(msg)