Impl. install script "rechecking" option

This commit is contained in:
Stephen Seo 2024-04-02 13:20:57 +09:00
parent 3960bb187e
commit 487b9632aa

View file

@ -2511,9 +2511,15 @@ def main():
continue continue
elif install_check == "ok": elif install_check == "ok":
continue_on_loop_exit = False continue_on_loop_exit = False
recheck_install_script = False
while True: while True:
if recheck_install_script:
recheck_install_script = False
check_install_script(
pkg_state, other_state, pkg_list[i], editor
)
log_print( log_print(
"install script ok? [Y/n/a(bort)/f(orce build)/b(ack)]", "install script ok? [Y/n/r(echeck)/a(bort)/f(orce build)/b(ack)]",
other_state=other_state, other_state=other_state,
) )
user_input = ( user_input = (
@ -2535,6 +2541,9 @@ def main():
i += 1 i += 1
continue_on_loop_exit = True continue_on_loop_exit = True
break break
elif user_input == "r":
recheck_install_script = True
continue
elif user_input == "a": elif user_input == "a":
print_state_info_and_get_update_list(other_state, pkg_state) print_state_info_and_get_update_list(other_state, pkg_state)
sys.exit(1) sys.exit(1)