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

Preserve perms of files copied to pex chroots. #540

Merged
merged 1 commit into from
Aug 21, 2018

Conversation

jsirois
Copy link
Member

@jsirois jsirois commented Aug 18, 2018

Failing tests are added that now pass.

Fixes #536

Failing tests are added that now pass.

Fixes pex-tool#536
@jsirois jsirois requested review from kwlzn and benjyw August 18, 2018 17:07
@@ -348,7 +348,7 @@ def __str__(self):
def delete(self):
shutil.rmtree(self.chroot)

def zip(self, filename, mode='wb'):
def zip(self, filename, mode='w'):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

opening a zip in non-binary mode strikes me as a bit odd.. what's the reasoning behind this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not even a thing! That was a bug. Zipfile only supports a subset of modes - this is not an open pass-thru.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be more clear, the one user passed mode='a', avoiding the bug.

@jsirois jsirois merged commit 0a8eee3 into pex-tool:master Aug 21, 2018
@jsirois jsirois deleted the issues/536 branch August 21, 2018 19:42
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.

3 participants