Fix update so that it actually updates the source directory,

This commit is contained in:
Andy Cedilnik 2002-10-06 21:25:30 -04:00
parent 51f399ca29
commit fba1ca0b68

View File

@ -280,12 +280,20 @@ void ctest::UpdateDirectory()
return; return;
} }
std::string sourceDirectory = m_DartConfiguration["SourceDirectory"];
if ( cvsOptions.size() == 0 )
{
std::cerr << "Cannot find SourceDirectory key in the DartConfiguration.tcl" << std::endl;
return;
}
std::string command = cvsCommand + " update " + cvsOptions; std::string command = cvsCommand + " update " + cvsOptions;
std::string output; std::string output;
int retVal; int retVal;
bool res = cmSystemTools::RunCommand(command.c_str(), output, bool res = cmSystemTools::RunCommand(command.c_str(), output,
retVal, 0, true); retVal, sourceDirectory.c_str(),
true);
if (! res || retVal ) if (! res || retVal )
{ {
std::cerr << "Error(s) when updating the project" << std::endl; std::cerr << "Error(s) when updating the project" << std::endl;