-
-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Fix patool double extracting when not needed #2591
Conversation
Pylint result on modfied files:
|
@Kinsteen Dammit, I just submitted a similar patch. But I also added info to the log for better debugging later. |
patoolib.extract_archive(os.path.join(Paths.temp, file), outdir=archive_path) | ||
if archive_path.endswith(".tar"): | ||
tar_path = os.path.join(archive_path, os.path.basename(archive_path)) | ||
patoolib.extract_archive(tar_path, outdir=archive_path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to have broken d3dx9 dependency installation. The file d3dx9.tar.xz
is extracted into the directory temp/d3dx9.tar/d3dx9
and nothing else need to be done (see the url definitions in d3dcompiler_47.yml). Previously there was a if os.path.isfile(ext_file)
condition to avoid the second extracting, but now it is attempted anyways and gives an error temp/d3dx9.tar/d3dx9.tar was not found
.
Yeah I'm experiencing the d3dx9 one too.
|
Description
Workaround to fix #2582. Patoolib should maybe be updated to a Git version, as the last release was in 2016.
Upstream issue: wummel/patool#94
Seems to be fixed in the Git version of patool.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Provide instructions so we can reproduce.