-
Notifications
You must be signed in to change notification settings - Fork 39
Handle symlinks in updater correctly #165
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
Conversation
Symlinks are not handled correct. $fileInfo->getRealPath() delivers an empty result for symlink files. Therefore I added another if to check if it is a link.
Also delete symlinked files, so that the updater does not stop when deleting a non-empty directory.
|
Code wise this looks good 👍 Haven't tested yet. What are the exact steps to reproduce? Link some files inside Nextcloud? How did you manage to get there? |
|
Also could you update https://github.com/nextcloud/updater/blob/master/lib/Updater.php with the exact same changes? Then the CI job also get's green. |
Symlinks are not handled correct. $fileInfo->getRealPath() delivers an empty result for symlink files. Therefore I added another if to check if it is a link. A part of issue #158 can be solved with this pull-request.
|
Steps to reproduce: |
|
Basically this patch should fix an issue the open suse packager introduced by replacing duplicate files with symlinks right? |
|
Exactly. |
|
@ggeorgg thanks! code looks good. |
|
Build fails because your branch is a bit outdated. Could you merge latest changes from nextcloud/updater? |
Get newest master branch from nextcloud updater
Updapte branch to latest nextcloud updater master
|
I just merged the latest nextcloud updater repository into my own branch "patch-1". It may look a bit clustered now with my commits. Hope this will not be a problem. I am not quite sure if this is how it works. If it was not correct what I have done, please give me a hint on how to proceed ;) |
|
OK. Sorry there is one more thing. You need to sign off your commits (see this link for more information https://stackoverflow.com/questions/1962094/what-is-the-sign-off-feature-in-git-for) You have two ways to do this: A) I would rebase (interactive) the branch to updater/master, squash all commits into one commit, sign these commit off and force push them back. |
|
Unfortunatley I was not able to clean up the pull request. I opened a new one here: #180. |
Also delete symlinked files, so that the updater does not stop when deleting a non-empty directory.
What do you think of this pull-request? @MorrisJobke