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

Commit

Permalink
Handle symlinks to license files in subdirectory
Browse files Browse the repository at this point in the history
Test: ./crate_tool import crc-catalog 2.4.0
Bug: 391657889
Change-Id: I40d4c9ebb001d4574beb81a5750fa8f8f61eb579
  • Loading branch information
jfgoog committed Jan 22, 2025
1 parent 2e78965 commit 75231fd
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 @@ -578,10 +578,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 75231fd

Please sign in to comment.