summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2004-01-27 14:42:57 (GMT)
committerKen Martin <ken.martin@kitware.com>2004-01-27 14:42:57 (GMT)
commitbcd194fa0691ca0a8e28916f47234aa88c5c7c74 (patch)
treeb7c9e3b6e77bd2ed3822ea8f229212841b6adb27
parentf33c01b98aa02847d3e74479291a206f5af6a55d (diff)
downloadCMake-bcd194fa0691ca0a8e28916f47234aa88c5c7c74.zip
CMake-bcd194fa0691ca0a8e28916f47234aa88c5c7c74.tar.gz
CMake-bcd194fa0691ca0a8e28916f47234aa88c5c7c74.tar.bz2
fix for backup restore
-rw-r--r--Source/cmCTest.cxx12
1 files changed, 1 insertions, 11 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index fbe20fd..621b2af 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -3160,17 +3160,7 @@ int cmCTest::RunConfigurationScript()
rename(srcDir, backupSrcDir.c_str());
rename(binDir, backupBinDir.c_str());
- // we must now checkout the src dir, first make the dir
- if (!cmSystemTools::MakeDirectory(srcDir))
- {
- cmSystemTools::Error("Unable to create the src directory");
- this->RestoreBackupDirectories(backup, srcDir, binDir,
- backupSrcDir.c_str(),
- backupBinDir.c_str());
- return 5;
- }
-
- // then do the checkout
+ // we must now checkout the src dir
output = "";
res = cmSystemTools::RunSingleCommand(cvsCheckOut, &output,
&retVal, ctestRoot,