Allow set custom priority for mass rebuild

This commit is contained in:
Vladimir Sharshov 2012-04-24 23:03:45 +04:00
parent 41ef7e85f3
commit 2a24997eb4
1 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,7 @@ class Project < ActiveRecord::Base
include Modules::Models::Owner include Modules::Models::Owner
def build_for(platform, user, arch = 'i586') def build_for(platform, user, arch = 'i586', priority = 0)
# Select main and project platform repository(contrib, non-free and etc) # Select main and project platform repository(contrib, non-free and etc)
# If main does not exist, will connect only project platform repository # If main does not exist, will connect only project platform repository
# If project platform repository is main, only main will be connect # If project platform repository is main, only main will be connect
@ -70,6 +70,7 @@ class Project < ActiveRecord::Base
bl.user = user bl.user = user
bl.auto_publish = true # already set as db default bl.auto_publish = true # already set as db default
bl.include_repos = build_ids bl.include_repos = build_ids
bl.priority = priority
end end
end end