Changeset 573 for tbroadcast/HEAD/python
- Timestamp:
- May 1, 2011, 6:40:34 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tbroadcast/HEAD/python/tbroadcast.py
r517 r573 68 68 #status, output = commands.getstatusoutput (cmd) 69 69 if status != 0: 70 print "WARNING: CMT exited with non-zero status!" 70 71 print output 71 72 sys.exit(-1) … … 95 96 #status, output = commands.getstatusoutput (cmd) 96 97 if status != 0: 98 print "WARNING: CMT exited with non-zero status!" 97 99 print output 98 100 sys.exit(-1) … … 207 209 level_stack = [{'name':previous_client,'level':previous_level},] 208 210 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') 211 215 while current_level > previous_level: 212 216 name = string.split (ligne)[2] … … 225 229 #print ligne 226 230 current_level = string.find(ligne, 'use') 231 else: return 227 232 228 233 # 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): 231 238 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 236 243 #print previous_client, '-->',string.split (ligne)[2] 237 244 … … 246 253 #status, output = commands.getstatusoutput (cmd) 247 254 if status != 0: 248 print output249 sys.exit(-1)255 print "WARNING: CMT exited with non-zero status!" 256 #sys.exit(-1) 250 257 self.get_uses(output) 251 258 self.get_paths(output) … … 296 303 #status, output = commands.getstatusoutput (cmd) 297 304 if status != 0: 305 print "WARNING: CMT exited with non-zero status!" 298 306 print output 299 307 sys.exit(-1)
Note: See TracChangeset
for help on using the changeset viewer.