Skip to content

Preserve perms of files copied to pex chroots.#540

Merged
jsirois merged 1 commit into
pex-tool:masterfrom
jsirois:issues/536
Aug 21, 2018
Merged

Preserve perms of files copied to pex chroots.#540
jsirois merged 1 commit into
pex-tool:masterfrom
jsirois:issues/536

Conversation

@jsirois
Copy link
Copy Markdown
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 benjyw and kwlzn August 18, 2018 17:07
Comment thread pex/common.py
shutil.rmtree(self.chroot)

def zip(self, filename, mode='wb'):
def zip(self, filename, mode='w'):
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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