pass platform_name into builder, fix use_extr_tests always enabled state

This commit is contained in:
Alexander Stefanov 2019-03-18 21:12:33 +03:00
parent 96c1d2e3f5
commit c35d42c6fb
2 changed files with 3 additions and 4 deletions

View File

@ -526,7 +526,8 @@ class BuildList < ActiveRecord::Base
'EXTRA_CFG_OPTIONS' => extra_params['cfg_options'],
'EXTRA_CFG_URPM_OPTIONS' => extra_params['cfg_urpm_options'],
'EXTRA_BUILD_SRC_RPM_OPTIONS' => extra_params['build_src_rpm'],
'EXTRA_BUILD_RPM_OPTIONS' => extra_params['build_rpm']
'EXTRA_BUILD_RPM_OPTIONS' => extra_params['build_rpm'],
'PLATFORM_NAME' => build_for_platform.name
}
cmd_params.merge!(
'RERUN_TESTS' => true,

View File

@ -27,9 +27,7 @@ h4.offset10= t("activerecord.attributes.build_list.preferences")
label
- checked = params[:build_list].try(:[], kind) || kind == :use_cached_chroot
- checked = @build_list.send(kind) if checked.nil?
input[type= 'checkbox'
checked= checked
name= "build_list[#{kind}]" ]
= f.check_box kind, {}, "true", "false"
= BuildList.human_attribute_name kind
- selected = params[:build_list].try(:[], :external_nodes)