@@ -273,27 +273,36 @@ def handleNewMachine(driver, description, is_clone, is_working):
273273 if (error_handler .errors > 0 ) or (error_handler .warnings > 0 ):
274274 sys .exit (1 )
275275
276- removed = list ()
276+ removed_working = list ()
277277 for driver in old_working :
278278 if (driver not in new_working ) and (driver not in new_nonworking ) and (driver not in renames ):
279- removed .append (old_working [driver ])
279+ removed_working .append (old_working [driver ])
280+ removed_working .sort ()
281+
282+ removed_nonworking = list ()
280283 for driver in old_nonworking :
281284 if (driver not in new_working ) and (driver not in new_nonworking ) and (driver not in renames ):
282- removed .append (old_nonworking [driver ])
283- removed .sort ()
285+ removed_nonworking .append (old_nonworking [driver ])
286+ removed_nonworking .sort ()
284287
285288 output .write ('Comparing %s to %s\n \n ' % (oldbuild , newbuild ))
286289
287290 if renames :
288291 output .write ('Renames\n ' )
289292 for old_name , info in renames .items ():
290- output .write ('%s -> %s %s\n ' % (old_name , info [1 ], info [0 ]))
293+ output .write (' %s -> %s %s\n ' % (old_name , info [1 ], info [0 ]))
294+ output .write ('\n ' )
295+
296+ if removed_working :
297+ output .write ('Removed (working)\n ' )
298+ for description in removed_working :
299+ output .write (' %s\n ' % (description , ))
291300 output .write ('\n ' )
292301
293- if removed :
294- output .write ('Removed\n ' )
295- for description in removed :
296- output .write ('%s\n ' % (description , ))
302+ if removed_nonworking :
303+ output .write ('Removed (non-working) \n ' )
304+ for description in removed_nonworking :
305+ output .write (' %s\n ' % (description , ))
297306 output .write ('\n ' )
298307
299308 printResult ('New working systems' , new_working_parents )
0 commit comments