dedebug + ui fix

This commit is contained in:
Alexey Nayden 2011-04-22 20:13:47 +04:00
parent 57493087db
commit 4f29a63296
4 changed files with 6 additions and 4 deletions

View File

@ -73,7 +73,9 @@ class BuildListsController < ApplicationController
@build_list.name = params[:name] @build_list.name = params[:name]
@build_list.additional_repos = ActiveSupport::JSON.decode(params[:additional_repos]) @build_list.additional_repos = ActiveSupport::JSON.decode(params[:additional_repos])
@build_list.set_items(ActiveSupport::JSON.decode(params[:items])) @build_list.set_items(ActiveSupport::JSON.decode(params[:items]))
params[:is_circular] @build_list.notified_at = Time.now
@build_list.is_circle = (params[:is_circular] != "0")
@build_list.bs_id = params[:id]
params[:arch] params[:arch]
@build_list.save @build_list.save

View File

@ -89,9 +89,7 @@ class BuildList < ActiveRecord::Base
end end
def place_build def place_build
RAILS_DEFAULT_LOGGER.fatal "place build"
self.status = BuildServer.add_build_list project.name, branch_name, project.repository.platform.name, arch.name self.status = BuildServer.add_build_list project.name, branch_name, project.repository.platform.name, arch.name
RAILS_DEFAULT_LOGGER.fatal "status = #{self.status}"
self.status = BUILD_PENDING if self.status == 0 self.status = BUILD_PENDING if self.status == 0
save save
end end

View File

@ -5,6 +5,7 @@ class BuildList::Item < ActiveRecord::Base
STATUSES = [BuildServer::SUCCESS, BuildServer::DEPENDENCIES_FAIL, BuildServer::SRPM_NOT_FOUND, BuildServer::MOCK_NOT_FOUND] STATUSES = [BuildServer::SUCCESS, BuildServer::DEPENDENCIES_FAIL, BuildServer::SRPM_NOT_FOUND, BuildServer::MOCK_NOT_FOUND]
HUMAN_STATUSES = { HUMAN_STATUSES = {
nil => :unknown,
BuildServer::MOCK_NOT_FOUND => :mock_not_found, BuildServer::MOCK_NOT_FOUND => :mock_not_found,
BuildServer::DEPENDENCIES_FAIL => :dependencies_fail, BuildServer::DEPENDENCIES_FAIL => :dependencies_fail,
BuildServer::SRPM_NOT_FOUND => :srpm_not_found, BuildServer::SRPM_NOT_FOUND => :srpm_not_found,

View File

@ -115,6 +115,7 @@ ru:
dependencies_fail: dependencies fail dependencies_fail: dependencies fail
srpm_not_found: srpm не найден srpm_not_found: srpm не найден
success: собран success: собран
unknown: ожидает сборки
statuses: statuses:
build_error: ошибка сборки build_error: ошибка сборки
mock_not_found: mock не найден mock_not_found: mock не найден