Skip to content

Binary packaging: correct relative symlinks#13710

Merged
becker33 merged 1 commit intospack:developfrom
scheibelp:bugfix/binary-pkg-relative-symlinks
Nov 14, 2019
Merged

Binary packaging: correct relative symlinks#13710
becker33 merged 1 commit intospack:developfrom
scheibelp:bugfix/binary-pkg-relative-symlinks

Conversation

@scheibelp
Copy link
Copy Markdown
Member

@becker33

Something I missed when reviewing #10073

relocate.make_link_relative was resolving a path relative to a complete file path when in fact os.path.relpath expects a directory. The result was that the relative path was always "off" by one directory in the sense that it always added an extra initial ../ to the path.

This determines the link target relative path relative to the link directory rather than relative to the full link path (which includes the file name).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants