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

Fix installer's handling of duplicate directory paths #17

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

krateng
Copy link

@krateng krateng commented Oct 25, 2022

Fixes #15

Instead of having a separate priority_dict, this now sorts all files to be installed into an OrderedDict which doesn't overwrite based on the destination path, but simply provides the correct order to copy paths so that higher priority files overwrite lower priority files while directories can get merged (depending on which tool is used to copy).

This introduces a slight inefficiency insofar as duplicate files will get returned twice and, without further parsing, might be copied over each other, but the installer cannot know for certain if a path is a file or a folder.

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.

Installer cannot return multiple directory paths with same destination
1 participant