BUG: Remember if there was update error

This commit is contained in:
Andy Cedilnik 2005-04-24 12:32:56 -04:00
parent e6f2d880a6
commit d6f9fd9f4e
1 changed files with 3 additions and 3 deletions

View File

@ -204,7 +204,7 @@ int cmCTestUpdateHandler::ProcessHandler()
int count = 0; int count = 0;
int updateType = e_CVS; int updateType = e_CVS;
std::string::size_type cc, kk; std::string::size_type cc, kk;
//bool updateProducedError = false; bool updateProducedError = false;
// Get source dir // Get source dir
@ -393,7 +393,7 @@ int cmCTestUpdateHandler::ProcessHandler()
} }
if ( !res || retVal ) if ( !res || retVal )
{ {
//updateProducedError = true; updateProducedError = true;
} }
os << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" os << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
@ -810,7 +810,7 @@ int cmCTestUpdateHandler::ProcessHandler()
os << "Update error: There are modified or conflicting files in the repository"; os << "Update error: There are modified or conflicting files in the repository";
std::cerr << " There are modified or conflicting files in the repository" << std::endl; std::cerr << " There are modified or conflicting files in the repository" << std::endl;
} }
if ( !res || retVal ) if ( updateProducedError )
{ {
os << "Update error: "; os << "Update error: ";
os << m_CTest->MakeXMLSafe(goutput); os << m_CTest->MakeXMLSafe(goutput);