Fix branch name for mass rebuild

Fix error in include_repos
This commit is contained in:
Vladimir Sharshov 2012-01-23 21:07:09 +04:00
parent 733adaf111
commit e1a4dd5ab5
1 changed files with 3 additions and 2 deletions

View File

@ -55,11 +55,12 @@ class Project < ActiveRecord::Base
bl.bpl = platform
bl.update_type = 'recommended'
bl.arch = Arch.find_by_name('i586')
bl.project_version = "latest_#{platform.name}"
# FIXME: Need to set "latest_#{platform.name}"
bl.project_version = "latest_mandriva2011"
bl.build_requires = false # already set as db default
bl.user = user
bl.auto_publish = true # already set as db default
bl.include_repos << Platform.find_by_id(platform).repositories.find_by_name('main').id
bl.include_repos = [] << platform.repositories.find_by_name('main').id
end
end