Skip to content

Fix windows filenames#141

Open
jeroen wants to merge 2 commits into
mainfrom
fix-windows-filenames
Open

Fix windows filenames#141
jeroen wants to merge 2 commits into
mainfrom
fix-windows-filenames

Conversation

@jeroen

@jeroen jeroen commented Jul 7, 2026

Copy link
Copy Markdown
Member

Two fixes:

  • If both Path and File are set, they must be combined.
  • If either Path or File contains a query string, we strip it when determining the local filename.

packages_make_target() built the download/cache target from the
File field first, and only fell back to Path when File was NA. This
meant that PACKAGES entries with both fields set had Path silently
dropped instead of combined, producing repodir/file instead of the
correct repodir/path/file.

Handle all four combinations explicitly: both present, only File,
only Path, and neither.

See r-universe-org/help#715
@jeroen jeroen force-pushed the fix-windows-filenames branch from 374b14b to 04a90b5 Compare July 7, 2026 17:42
@jeroen jeroen force-pushed the fix-windows-filenames branch from 04a90b5 to 19a5635 Compare July 7, 2026 17:46
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