Show
Ignore:
Timestamp:
04/05/05 10:26:00 (19 years ago)
Author:
jerome
Message:

Ignore errors in posthooks

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tea4cups/trunk/tea4cups

    r624 r625  
    3737from struct import unpack 
    3838 
    39 version = "2.10_unofficial" 
     39version = "2.11_unofficial" 
    4040 
    4141class TeeError(Exception): 
     
    543543            status = self.runCommands(branchtype, branches, serialize) 
    544544            if status : 
    545                 exitcode = status 
     545                if branchtype != "posthook" : 
     546                    exitcode = status 
     547                else :     
     548                    # we just ignore error in posthooks 
     549                    self.logInfo("An error occured during the execution of posthooks.", "warn") 
    546550            if (branchtype == "prehook") and self.isCancelled : 
    547551                break # We don't want to execute tees or posthooks in this case