Changeset 573 for tbroadcast


Ignore:
Timestamp:
May 1, 2011, 6:40:34 PM (13 years ago)
Author:
rybkin
Message:

See C.L. 6

Location:
tbroadcast/HEAD
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tbroadcast/HEAD/Changelog

    r517 r573  
     12011-05-01    <rybkin@lal.in2p3.fr> 6
     2
     3        * python/tbroadcast.py: In class Scheduler, function get_uses, fix bug of
     4        not adding use in last line of processed text ("cmt show uses" command
     5        output) to dependencies
     6
     72010-04-13 Emil Obreshkov <Emil.Obreshkov>
     8        * python/tbroadcast.py - do not exit if "cmt show uses" return non-zero exit (in the new CMT v1r21)
     9
    1102009-08-11 Igor Kachaev <Igor.Katchaev@cern.ch>
    211        * python/threadpool.py update to version 1.2.5 (2008-11-19)
  • tbroadcast/HEAD/python/tbroadcast.py

    r517 r573  
    6868        #status, output = commands.getstatusoutput (cmd)
    6969        if status != 0:
     70            print "WARNING: CMT exited with non-zero status!"
    7071            print output
    7172            sys.exit(-1)
     
    9596        #status, output = commands.getstatusoutput (cmd)
    9697        if status != 0:
     98            print "WARNING: CMT exited with non-zero status!"
    9799            print output
    98100            sys.exit(-1)
     
    207209        level_stack    = [{'name':previous_client,'level':previous_level},]
    208210        ligne = lignes.pop()
    209         while len(lignes)!=0:
    210             current_level = string.find(ligne, 'use')
     211        current_level = string.find(ligne, 'use')
     212        while True:
     213        #while len(lignes)!=0:
     214            #current_level = string.find(ligne, 'use')
    211215            while current_level > previous_level:
    212216                name    = string.split (ligne)[2]
     
    225229                    #print ligne
    226230                    current_level = string.find(ligne, 'use')
     231                else: return
    227232
    228233            # restore the level
    229             if len(lignes):
    230                 if len(level_stack):
     234            #if len(lignes):
     235            if len(level_stack):
     236                item = level_stack.pop()
     237                while item['level'] >= current_level and len(level_stack):
    231238                    item = level_stack.pop()
    232                     while item['level'] >= current_level and len(level_stack):
    233                              item = level_stack.pop()
    234                     previous_client = item['name']
    235                     previous_level  = item['level']
     239                previous_client = item['name']
     240                previous_level  = item['level']
     241
     242            if current_level <= previous_level: return
    236243            #print previous_client, '-->',string.split (ligne)[2]
    237244
     
    246253        #status, output = commands.getstatusoutput (cmd)
    247254        if status != 0:
    248             print output
    249             sys.exit(-1)
     255            print "WARNING: CMT exited with non-zero status!"
     256            #sys.exit(-1)
    250257        self.get_uses(output)
    251258        self.get_paths(output)
     
    296303        #status, output = commands.getstatusoutput (cmd)
    297304        if status != 0:
     305            print "WARNING: CMT exited with non-zero status!"
    298306            print output
    299307            sys.exit(-1)
Note: See TracChangeset for help on using the changeset viewer.