From 53ceb9b43b558dba700a1cbc0fdcb48d49f37e8d Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Tue, 2 Apr 2024 14:09:14 +0900 Subject: [PATCH] Don't generate user chroot if already once --- update.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/update.py b/update.py index 1b37094..f78d334 100755 --- a/update.py +++ b/update.py @@ -2424,6 +2424,7 @@ def main(): i = 0 furthest_checked = 0 going_back = False + check_install_script_ran_once = False while i < len(pkg_list): if i > furthest_checked: furthest_checked = i @@ -2497,10 +2498,18 @@ def main(): sys.exit(1) install_check = check_install_script( - pkg_state, other_state, pkg_list[i], editor + pkg_state, + other_state, + pkg_list[i], + editor, + skip_prepare_chroot=check_install_script_ran_once, ) + check_install_script_ran_once = True if install_check == "does_not_exist": - pass + log_print( + 'NOTICE: pkg does not have "install" script.', + other_state=other_state, + ) elif install_check == "error": log_print( "WARNING: Failed to check PKGBUILD install script!",