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

refs #5936 remove gone files during update #5984

Merged
merged 5 commits into from Aug 12, 2014

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Aug 12, 2014

As mentioned in the ticket when updating Piwik it will compare all directories within the plugins folder and the core directory of the latest.zip with the current installation and remove all files that are in the users current installation but not in the latest.zip.

To test it one has to update Piwik to make sure the CoreUpdater uses this new codebase and then update again to a later version. So it won't work directly with the next update. Maybe we can release to new betas and update after each?

…s directories that are no longer present in the new build
…re they only delete the files they are supposed to do
… also brings the advantage to make it better testable. Controller should be always simple/small... removeGoneFiles() is not really testable as it uses the static filesystem and I did not want to make the code ugly to mock it... Looking forward to dependency injection
tsteur added a commit that referenced this pull request Aug 12, 2014
@tsteur tsteur merged commit 33cb6f0 into master Aug 12, 2014
@tsteur tsteur deleted the 5936_removeGoneFilesDuringUpdate branch August 12, 2014 09:57
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.

None yet

1 participant