summaryrefslogtreecommitdiffstats
path: root/Source/kwsys
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2004-01-22 15:30:01 (GMT)
committerBrad King <brad.king@kitware.com>2004-01-22 15:30:01 (GMT)
commit49bd89fe31f9a5d064c9ae863798349838badc21 (patch)
treedb2c4fc838ed7fa88d1ed2acf4e55436508aa6c0 /Source/kwsys
parentf9a3f74d87a875e172c8128a3e2e5d215a54dd31 (diff)
downloadCMake-49bd89fe31f9a5d064c9ae863798349838badc21.zip
CMake-49bd89fe31f9a5d064c9ae863798349838badc21.tar.gz
CMake-49bd89fe31f9a5d064c9ae863798349838badc21.tar.bz2
BUG: CopyFileIfDifferent should return success if the files did not differ or if the copy succeeded. It should return failure only if the files were different and the copy failed.
Diffstat (limited to 'Source/kwsys')
-rw-r--r--Source/kwsys/SystemTools.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
index d525be3..825e27e 100644
--- a/Source/kwsys/SystemTools.cxx
+++ b/Source/kwsys/SystemTools.cxx
@@ -816,14 +816,13 @@ kwsys_stl::string SystemTools::ConvertToWindowsOutputPath(const char* path)
}
bool SystemTools::CopyFileIfDifferent(const char* source,
- const char* destination)
+ const char* destination)
{
if(SystemTools::FilesDiffer(source, destination))
{
- SystemTools::CopyFileAlways(source, destination);
- return true;
+ return SystemTools::CopyFileAlways(source, destination);
}
- return false;
+ return true;
}