[SCM] live-studio branch, master, updated. a816e008e6ebb9547fc51d020252219299825e94

Chris Lamb lamby at debian.org
Sat Jul 31 02:53:48 UTC 2010


The following commit has been merged in the master branch:
commit a816e008e6ebb9547fc51d020252219299825e94
Author: Chris Lamb <lamby at debian.org>
Date:   Fri Jul 30 22:51:46 2010 -0400

    Update the database last.

diff --git a/live_studio/build/management/commands/queue_runner.py b/live_studio/build/management/commands/queue_runner.py
index 37ad239..5c05b65 100644
--- a/live_studio/build/management/commands/queue_runner.py
+++ b/live_studio/build/management/commands/queue_runner.py
@@ -109,18 +109,18 @@ class Command(NoArgsCommand):
         try:
             filename = self.build(build, tempdir, logfile, target_dir)
 
+            status = 'success'
+            self.log.info("#%d built successfully", build.pk)
+
             update(
                 filename=filename,
                 finished=datetime.datetime.now(),
             )
 
-            status = 'success'
-            self.log.info("#%d built successfully", build.pk)
-
         except:
             status = 'failure'
-            update(finished=datetime.datetime.now())
             self.log.error("#%d failed to build", build.pk)
+            update(finished=datetime.datetime.now())
             raise
 
         finally:

-- 
live-studio



More information about the debian-live-changes mailing list