gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject cvs commit: gump/python/gump/core engine.py
Date Sat, 15 May 2004 23:49:11 GMT
ajack       2004/05/15 16:49:11

  Modified:    python/gump/core engine.py
  Log:
  Restore update check from SVN|CVS output (since the sync log
  also includes build cleanup .. DOH).
  
  Revision  Changes    Path
  1.19      +10 -8     gump/python/gump/core/engine.py
  
  Index: engine.py
  ===================================================================
  RCS file: /home/cvs/gump/python/gump/core/engine.py,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- engine.py	15 May 2004 21:44:13 -0000	1.18
  +++ engine.py	15 May 2004 23:49:11 -0000	1.19
  @@ -289,8 +289,14 @@
                           # Kinda bogus, but better than nowt (for now)
                           module.changeState(STATE_SUCCESS,REASON_UPDATE_FAILED)
                   else:
  -                    module.changeState(STATE_SUCCESS)                                 
                         
  -    
  +                    module.changeState(STATE_SUCCESS)   
  +                    
  +                    if cmdResult.hasOutput():
  +                        # Were the contents of the repository modified?               
            module.setUpdated(1)                        
  +                        module.setUpdated(1)                        
  +                        log.info('Update(s) received via CVS/SVN/Jars on #[' + `moduleNo`
+ \
  +                                '] of [' + `moduleCount` + ']: ' + module.getName())
  +                                                                                      
     
           
               #
               # Sync if appropriate.
  @@ -310,17 +316,13 @@
                                           workspace.tmpdir,	\
                                           'changes_to_'+gumpSafeName(module.getName())+'.txt'))
                       
  -                    modified=syncDirectories(sourcedir,destdir,module,changesFile)
  +                    changes=syncDirectories(sourcedir,destdir,module,changesFile)
                       
                       # We are good to go...
                       module.changeState(STATE_SUCCESS)
                       
                       # Were the contents of the repository modified?                   
                    
  -                    if modified:
  -                        module.setUpdated(1)                        
  -                        log.info('Update(s) received via CVS/SVN/Jars on #[' + `moduleNo`
+ \
  -                                '] of [' + `moduleCount` + ']: ' + module.getName())
  -                                
  +                    if changes:
                           # Log of changes...
                           if os.path.exists(changesFile):                               
                               catFileToFileHolder(module, changesFile, FILE_TYPE_LOG) 
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Mime
View raw message