Skip to content

Commit

Permalink
chore(downloader): Say "verifying" in case of a dry run
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed Aug 20, 2024
1 parent f75bc26 commit 8c0a234
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,10 @@ class DownloaderCommand : OrtCommand(
throw ProgramResult(0)
}

val verb = if (dryRun) "Verifying" else "Downloading"

echo(
"Downloading ${packageTypes.joinToString(" and ") { "${it}s" }} from ORT result file at " +
"$verb ${packageTypes.joinToString(" and ") { "${it}s" }} from ORT result file at " +
"'${ortFile.canonicalPath}'..."
)

Expand Down Expand Up @@ -294,7 +296,7 @@ class DownloaderCommand : OrtCommand(
}
}

echo("Downloading ${packages.size} project(s) / package(s) in total.")
echo("$verb ${packages.size} project(s) / package(s) in total.")

val packageDownloadDirs = packages.associateWith { outputDir.resolve(it.id.toPath()) }

Expand Down

0 comments on commit 8c0a234

Please sign in to comment.