Skip to content

Fixed book mapping contributes not being detected on Windows#2637

Merged
KABoissonneault merged 1 commit intoInterkarma:masterfrom
KABoissonneault:fix/contributes-book-mapping
Apr 8, 2024
Merged

Fixed book mapping contributes not being detected on Windows#2637
KABoissonneault merged 1 commit intoInterkarma:masterfrom
KABoissonneault:fix/contributes-book-mapping

Conversation

@KABoissonneault
Copy link
Copy Markdown
Collaborator

Fix for #2636.

Before #2580, we used to leave contributes untouched if no contributes were detected. Instead now, we always update contributes, removing files that are not detected by the function.

Detection of book mappings has always been broken on Windows. The path returned by Path.GetDirectoryName uses \ to separate paths, but the check for Books/Mapping checked with a forward slash.

I instead changed this function to properly detect the path Books/Mapping on any platform. As a result, the books should now properly be detected on Windows, and updating the mapping should always give the correct result.

@KABoissonneault KABoissonneault requested review from Jagget and ajrb April 8, 2024 14:32
Copy link
Copy Markdown
Collaborator

@ajrb ajrb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@KABoissonneault KABoissonneault merged commit 9e9ff1e into Interkarma:master Apr 8, 2024
@KABoissonneault KABoissonneault deleted the fix/contributes-book-mapping branch April 8, 2024 21:24
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.

3 participants