Skip to content

Commit

Permalink
match component names without path when checking for component validity
Browse files Browse the repository at this point in the history
  • Loading branch information
cyr committed Jan 21, 2025
1 parent e7c2699 commit ea7082e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mirror/release.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ impl Step<MirrorState> for DownloadRelease {
}

if let Some(release_components) = release.components() {
let components = release_components.split_ascii_whitespace().collect::<Vec<&str>>();
let components = release_components.split_ascii_whitespace()
.map(|v| v.split('/').last().expect("last should always exist here"))
.collect::<Vec<&str>>();

for requested_component in &ctx.state.opts.components {
if !components.contains(&requested_component.as_str()) {
Expand Down

0 comments on commit ea7082e

Please sign in to comment.