Build platform for both arches. Refs #263

This commit is contained in:
Pavel Chipiga 2012-03-24 01:53:07 +02:00
parent 9ced817560
commit 099ba2a3dd
1 changed files with 6 additions and 4 deletions

View File

@ -156,10 +156,12 @@ class Platform < ActiveRecord::Base
repositories.find_by_name('main').projects.find_in_batches(:batch_size => 5) do |group|
sleep 1
group.each do |p|
begin
p.build_for(self, user)
rescue RuntimeError, Exception
p.delay.build_for(self, user)
%w(i586 x86_64).each do |arch|
begin
p.build_for(self, user, arch)
rescue RuntimeError, Exception
p.delay.build_for(self, user, arch)
end
end
end
end