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

MacUpdater: Retain file permissions #7819

Merged
merged 1 commit into from
Feb 25, 2019

Conversation

spycrab
Copy link
Contributor

@spycrab spycrab commented Feb 24, 2019

Fixes updated bundles not being executable.

@delroth
Copy link
Member

delroth commented Feb 24, 2019

This does not handle the case where a new binary is added to the package, so at some point update compatibility will be broken.

Given that the update version incompatibility will need to be fixed at some point anyway, the choice is basically now vs. later (e.g. when a new binary is added). If it's postponed to later then there's the risk that people will not remember and break updates (possibly in a way that bricks installs), or that people who understand the auto-update system well are not involved with the project anymore. So IMO that's the "dangerous" kind of technical debt, and I would rather see it addressed now with a proper updater protocol version bump.

@spycrab
Copy link
Contributor Author

spycrab commented Feb 24, 2019

While I think that addressing this issue properly as described in @delroth's post is both required and inevitable it's also important that we ship a fix to avoid confusing users and trapping them into using a broken feature. Especially since the proper fix might need some time before it's ready for shipping.

@riking
Copy link
Contributor

riking commented Feb 25, 2019

Inserting a TODOs noting that (2) that this is a hack, (3) the likely failure condition of the hack, and (1) the exit condition to remove the hack, seems prudent.

// TODO: A new updater protocol version is required to properly mark executable files.  For
// now, copy executable bits from existing files. This will break for newly added executables.

@spycrab spycrab merged commit 1ba4fd8 into dolphin-emu:master Feb 25, 2019
@spycrab spycrab deleted the keep_permissions branch February 25, 2019 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants