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

Produce relative paths #336

Merged
merged 1 commit into from
Apr 7, 2021
Merged

Produce relative paths #336

merged 1 commit into from
Apr 7, 2021

Conversation

gesellix
Copy link
Contributor

@gesellix gesellix commented Apr 5, 2021

When upgrading the jdeb dependency in the gradle-debian-plugin, I stumbled upon failing tests. The tests related to paths which had been relative (no leading / or having a ./ instead), but got a leading / with jdeb 1.7 and jdeb 1.8.

This change reverts the behaviour back to jdeb 1.6 with two combined changes:

  • Utils#joinUnixPath now doesn't prepend a / anymore (so, it only joins now)
  • PermMapper#map removes any leading /, just like Apache commons-compress did in versions up to 1.10.

Relates to #264

@gesellix gesellix marked this pull request as ready for review April 6, 2021 00:05
@tcurdt tcurdt self-assigned this Apr 6, 2021
@tcurdt tcurdt added this to the 1.9 milestone Apr 6, 2021
@tcurdt tcurdt merged commit 32d4b69 into tcurdt:master Apr 7, 2021
@tcurdt
Copy link
Owner

tcurdt commented Apr 7, 2021

Thanks for the PR!

@gesellix
Copy link
Contributor Author

gesellix commented Apr 7, 2021

Thanks for merging :)

@gesellix gesellix deleted the relative-paths branch April 7, 2021 08:10
@tmortagne
Copy link
Collaborator

I'm wondering if this did not cause #364.

@tmortagne
Copy link
Collaborator

See #364 (comment).

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