Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Merge "Handle symlinks to license files in subdirectory" into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Treehugger Robot authored and Gerrit Code Review committed Jan 22, 2025
2 parents df175a4 + 75231fd commit 5aaffb2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tools/external_crates/crate_tool/src/managed_repo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -580,10 +580,7 @@ impl ManagedRepo {
if licenses.satisfied.len() == 1 && licenses.unsatisfied.is_empty() {
let license_file = krate.path().join("LICENSE")?;
if !license_file.abs().exists() {
symlink(
licenses.satisfied.iter().next().unwrap().1.file_name().unwrap(),
license_file,
)?;
symlink(licenses.satisfied.iter().next().unwrap().1, license_file)?;
}
}

Expand Down

0 comments on commit 5aaffb2

Please sign in to comment.