[Cmake-commits] [cmake-commits] hoffman committed cmCPackPackageMakerGenerator.cxx 1.30 1.31

cmake-commits at cmake.org cmake-commits at cmake.org
Sun Oct 4 09:55:00 EDT 2009


Update of /cvsroot/CMake/CMake/Source/CPack
In directory public:/mounts/ram/cvs-serv17355

Modified Files:
	cmCPackPackageMakerGenerator.cxx 
Log Message:
Try to avoid cronic random failures on some Macs.


Index: cmCPackPackageMakerGenerator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/CPack/cmCPackPackageMakerGenerator.cxx,v
retrieving revision 1.30
retrieving revision 1.31
diff -C 2 -d -r1.30 -r1.31
*** cmCPackPackageMakerGenerator.cxx	28 Sep 2009 15:42:50 -0000	1.30
--- cmCPackPackageMakerGenerator.cxx	4 Oct 2009 13:54:55 -0000	1.31
***************
*** 322,327 ****
    std::string output;
    int retVal = 1;
!   bool res = cmSystemTools::RunSingleCommand(dmgCmd.str().c_str(), &output,
!     &retVal, 0, this->GeneratorVerbose, 0);
    if ( !res || retVal )
      {
--- 322,338 ----
    std::string output;
    int retVal = 1;
!   int numTries = 4;
!   bool res;
!   while(numTries > 0)
!     {
!     res = cmSystemTools::RunSingleCommand(dmgCmd.str().c_str(), &output,
!                                           &retVal, 0, this->GeneratorVerbose, 
!                                           0);
!     if(res && retVal)
!       {
!       numTries = -1;
!       }
!     numTries--;
!     }
    if ( !res || retVal )
      {



More information about the Cmake-commits mailing list