Fixed MassBuild for personal RELS platforms

This commit is contained in:
Vokhmin Alexey V 2013-10-24 13:29:59 +04:00
parent 0b56e95fb2
commit 21883a9e02
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ class Project < ActiveRecord::Base
# Select main and project platform repository(contrib, non-free and etc)
# If main does not exist, will connect only project platform repository
# If project platform repository is main, only main will be connect
main_rep_id = build_for_platform.repositories.find_by_name('main').try(:id)
main_rep_id = build_for_platform.repositories.find_by_name(%w(main base)).try(:id)
include_repos = ([main_rep_id] << (save_to_platform.main? ? repository_id : nil)).compact.uniq
project_version = if repo.commits("#{save_to_platform.name}").try(:first).try(:id)