fix for backup restore

This commit is contained in:
Ken Martin 2004-01-27 09:42:57 -05:00
parent f33c01b98a
commit bcd194fa06
1 changed files with 1 additions and 11 deletions

View File

@ -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,