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 Mar 15, 2024
1 parent 16ee7fd commit b54aa02
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,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 @@ -292,7 +294,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 b54aa02

Please sign in to comment.