Skip to content
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 extracted files permissions #609

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gilfree
Copy link

@gilfree gilfree commented Apr 3, 2024

Fix #608: This commit fixes the extracted file permissions when using .extract/.extract_files in addition
to when using the unpack cli command.

The fix is by overriding the _extract_member method of zip file, and adding permissions fix there.

The permissions fix was moved from the unpack to the new method.

This commit fixes the extracted file permissions
when using .extract/.extract_files in addition
to when using the unpack cli command.

The fix is by overriding the _extract_member
method of zip file, and adding permissions fix
there.

The permissions fix was moved from the unpack to
the new method.
Copy link

codecov bot commented Apr 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.41%. Comparing base (0a4f40e) to head (fb55460).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #609      +/-   ##
==========================================
+ Coverage   71.28%   71.41%   +0.13%     
==========================================
  Files          13       13              
  Lines        1069     1074       +5     
==========================================
+ Hits          762      767       +5     
  Misses        307      307              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gilfree gilfree changed the title fix: Fix extracted files permissions Fix extracted files permissions Apr 3, 2024
@gilfree gilfree marked this pull request as ready for review April 3, 2024 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WheelFile extract does not preserve permissions
1 participant