#181: pass name of main platform on publish

This commit is contained in:
Vokhmin Alexey V 2013-06-12 15:00:41 +04:00
parent b4ffae9a9c
commit cd813b3ca1
1 changed files with 16 additions and 13 deletions

View File

@ -93,12 +93,13 @@ module AbfWorker
distrib_type = build_list.build_for_platform.distrib_type distrib_type = build_list.build_for_platform.distrib_type
cmd_params = { cmd_params = {
'RELEASED' => false, 'RELEASED' => false,
'REPOSITORY_NAME' => build_list.save_to_repository.name, 'REPOSITORY_NAME' => build_list.save_to_repository.name,
'TYPE' => distrib_type, 'TYPE' => distrib_type,
'IS_CONTAINER' => true, 'IS_CONTAINER' => true,
'ID' => build_list.id, 'ID' => build_list.id,
'PLATFORM_NAME' => build_list.save_to_platform.name 'PLATFORM_NAME' => build_list.save_to_platform.name,
'MAIN_PLATFORM_NAME' => build_list.build_for_platform.name
}.map{ |k, v| "#{k}=#{v}" }.join(' ') }.map{ |k, v| "#{k}=#{v}" }.join(' ')
@ -283,9 +284,10 @@ module AbfWorker
distrib_type = build_for_platform.distrib_type distrib_type = build_for_platform.distrib_type
cmd_params = { cmd_params = {
'RELEASED' => save_to_platform.released, 'RELEASED' => save_to_platform.released,
'REPOSITORY_NAME' => save_to_repository.name, 'REPOSITORY_NAME' => save_to_repository.name,
'TYPE' => distrib_type 'TYPE' => distrib_type,
'MAIN_PLATFORM_NAME' => build_for_platform.name
}.map{ |k, v| "#{k}=#{v}" }.join(' ') }.map{ |k, v| "#{k}=#{v}" }.join(' ')
lock_str = "#{save_to_repository_id}-#{build_for_platform_id}" lock_str = "#{save_to_repository_id}-#{build_for_platform_id}"
@ -347,10 +349,11 @@ module AbfWorker
platform_path = "#{rep.platform.path}/repository" platform_path = "#{rep.platform.path}/repository"
distrib_type = rep.platform.distrib_type distrib_type = rep.platform.distrib_type
cmd_params = { cmd_params = {
'RELEASED' => rep.platform.released, 'RELEASED' => rep.platform.released,
'REPOSITORY_NAME' => rep.name, 'REPOSITORY_NAME' => rep.name,
'TYPE' => distrib_type, 'TYPE' => distrib_type,
'REGENERATE_METADATA' => true 'REGENERATE_METADATA' => true,
'MAIN_PLATFORM_NAME' => rep.platform.name
}.map{ |k, v| "#{k}=#{v}" }.join(' ') }.map{ |k, v| "#{k}=#{v}" }.join(' ')
options = { options = {