summaryrefslogtreecommitdiffstats
path: root/Source/cmFileCommand.cxx
diff options
context:
space:
mode:
authorMichael Hirsch <scivision@users.noreply.github.com>2022-08-22 03:42:28 (GMT)
committerCraig Scott <craig.scott@crascit.com>2022-08-23 12:40:28 (GMT)
commit87a40b720a53ea70bfa4466a52aa696e1940cd0d (patch)
tree3d34b7db2b3182588bb11ab89445600a3fc3ffe0 /Source/cmFileCommand.cxx
parent7037cfc0f48739bd1eb3498827ebf501671302c7 (diff)
downloadCMake-87a40b720a53ea70bfa4466a52aa696e1940cd0d.zip
CMake-87a40b720a53ea70bfa4466a52aa696e1940cd0d.tar.gz
CMake-87a40b720a53ea70bfa4466a52aa696e1940cd0d.tar.bz2
file(DOWNLOAD): Fix message for existing file with matching hash
file(DOWNLOAD STATUS) docs say the return list is of length 2. However, when an already downloaded file hash matches EXPECTED_HASH, the return message had a semicolon that made the return list length 3. Adjust the message to no longer contain the extra semicolon and to more clearly describe the situation.
Diffstat (limited to 'Source/cmFileCommand.cxx')
-rw-r--r--Source/cmFileCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index 330d991..7810040 100644
--- a/Source/cmFileCommand.cxx
+++ b/Source/cmFileCommand.cxx
@@ -1914,7 +1914,7 @@ bool HandleDownloadCommand(std::vector<std::string> const& args,
std::string msg;
std::string actualHash = hash->HashFile(file);
if (actualHash == expectedHash) {
- msg = cmStrCat("returning early; file already exists with expected ",
+ msg = cmStrCat("skipping download as file already exists with expected ",
hashMatchMSG, '"');
if (!statusVar.empty()) {
status.GetMakefile().AddDefinition(statusVar, cmStrCat(0, ";\"", msg));