Skip to content

Fix installer's handling of duplicate directory paths#17

Open
krateng wants to merge 2 commits intodh-nunes:masterfrom
krateng:duplicatepaths
Open

Fix installer's handling of duplicate directory paths#17
krateng wants to merge 2 commits intodh-nunes:masterfrom
krateng:duplicatepaths

Conversation

@krateng
Copy link
Copy Markdown

@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