Skip to content

Commit

Permalink
Use greater than or equal for version check
Browse files Browse the repository at this point in the history
Co-authored-by: Hugo van Kemenade <[email protected]>
  • Loading branch information
radarhere and hugovk authored Dec 17, 2024
1 parent 7797152 commit f4d0474
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions winbuild/build_prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f4d0474

Please sign in to comment.