tell which components were being built when interrupted
authorTimo Savola <tsavola@movial.fi>
Fri, 8 Aug 2008 08:43:13 +0000 (11:43 +0300)
committerTimo Savola <tsavola@movial.fi>
Fri, 8 Aug 2008 08:43:13 +0000 (11:43 +0300)
matrix/build.py

index aa07ec1..51e23cf 100644 (file)
@@ -145,14 +145,16 @@ class Builder(object):
                                sys.stdout = self.progress.file
                except:
                        for pid in self.jobs:
+                               c = self.jobs[pid]
+                               c.state = 'killed'
+
+                               print 'Aborting', c
+
                                try:
                                        os.kill(pid, signal.SIGTERM)
                                except OSError, e:
                                        log.error('kill: %s' % e)
 
-                               c = self.jobs[pid]
-                               c.state = 'killed'
-
                        while self.jobs:
                                self.wait()