fix for creating mass_build

This commit is contained in:
Vokhmin Alexey V 2012-12-25 20:01:44 +04:00
parent e477ca51d1
commit ca24de30b9
2 changed files with 3 additions and 2 deletions

View File

@ -50,7 +50,7 @@ class MassBuild < ActiveRecord::Base
sleep 1
end
end
later :build_all, :loner => true, :queue => :clone_build
later :build_all, :queue => :clone_build
def generate_failed_builds_list
report = ""

View File

@ -137,7 +137,7 @@ class Project < ActiveRecord::Base
main_rep_id = platform.repositories.find_by_name('main').try(:id)
build_reps_ids = [main_rep_id, repository_id].compact.uniq
build_lists.create do |bl|
build_list = build_lists.build do |bl|
bl.save_to_platform = platform
bl.build_for_platform = platform
bl.update_type = 'newpackage'
@ -151,6 +151,7 @@ class Project < ActiveRecord::Base
bl.save_to_repository_id = repository_id
bl.new_core = new_core
end
build_list.save
end
def fork(new_owner)