From b55e9bf25a6cb87e85c5bc1a8cfcde78194ebd50 Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Thu, 22 May 2014 03:12:39 +0400 Subject: [PATCH] #390: added hook for build_canceled --- lib/abf_worker/rpm_worker_observer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/abf_worker/rpm_worker_observer.rb b/lib/abf_worker/rpm_worker_observer.rb index 0fb71ef78..86c7ae93b 100644 --- a/lib/abf_worker/rpm_worker_observer.rb +++ b/lib/abf_worker/rpm_worker_observer.rb @@ -34,8 +34,8 @@ module AbfWorker when STARTED subject.start_build when CANCELED + item.update_attributes({status: BuildList::BUILD_CANCELED}) unless reruninng_tests || subject.tests_failed? subject.build_canceled - item.update_attributes({status: BuildList::BUILD_CANCELED}) unless reruninng_tests when TESTS_FAILED subject.tests_failed end