From 11a8e680fb61cc8393969a8c23f613568cc2747b Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Fri, 1 Jan 2010 20:01:35 -0500 Subject: [PATCH] Regardless of any success or failure, always remove the build queue entry when handling a build has completed. svn path=/trunk/packages/invirt-dev/; revision=2838 --- invirtibuilder | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/invirtibuilder b/invirtibuilder index 633563c..f5c3821 100755 --- a/invirtibuilder +++ b/invirtibuilder @@ -335,10 +335,6 @@ def build(): uploadBuild(pocket, workdir) db.failed_stage = 'cleaning up' - - # Finally, now that everything is done, remove the - # build queue item - os.unlink(os.path.join(b._QUEUE_DIR, build)) except: db.traceback = traceback.format_exc() else: @@ -348,6 +344,10 @@ def build(): database.session.save_or_update(db) database.session.commit() + # Finally, now that everything is done, remove the + # build queue item + os.unlink(os.path.join(b._QUEUE_DIR, build)) + reportBuild(db) -- 1.7.9.5