Skip to content

apt: relative path for property Filename in Packages (fixes: #586) #691

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dionysius
Copy link

As described in #586

The Nexus Repo generated Packages file does not follow the DebianRepository spec in regard to the Filename: field.

The Filename: field that Nexus Repo generates contains a leading /, this is in direct violation of the spec which requires it to be a relative path (source). The UNIX spec defines a relative path as a path without a leading slash (source).

This creates issues with many apt mirroring utilities.

Uses Paths.relativize() with base / to always output a relative path.

Review advised, unable to test and build due to #600

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.

1 participant