diff --git a/src/wizard/deploy.jl b/src/wizard/deploy.jl index 3e077217e..dd5ece722 100644 --- a/src/wizard/deploy.jl +++ b/src/wizard/deploy.jl @@ -20,7 +20,16 @@ function print_build_tarballs(io::IO, state::WizardState) else platforms_string = """ [ - $(strip(join(repr.(state.platforms),",\n "))) + """ + for platform in state.platforms + rp = repr(platform) + if platform in state.failed_platforms + platforms_string *= "# $rp,\n" + else + platforms_string *= " $rp,\n" + end + end + platforms_string *= """ ] """ end diff --git a/src/wizard/interactive_build.jl b/src/wizard/interactive_build.jl index 5756b7b11..e199548cd 100644 --- a/src/wizard/interactive_build.jl +++ b/src/wizard/interactive_build.jl @@ -863,20 +863,19 @@ function step6(state::WizardState) println(state.outs) if choice == 1 - filter!(p->!(p in state.failed_platforms), state.platforms) state.step = :step7 elseif choice == 2 plats = collect(state.failed_platforms) if length(plats) > 1 - choice = request(terminal, + plat_choice = request(terminal, "Which platform would you like to revisit?", RadioMenu(map(repr, plats); charset=:ascii)) println(state.outs) else - choice = 1 + plat_choice = 1 end - if step5_internal(state, plats[choice]) - delete!(state.failed_platforms, plats[choice]) + if step5_internal(state, plats[plat_choice]) + delete!(state.failed_platforms, plats[plat_choice]) end # Will wrap back around to step 6 elseif choice == 3