]> git.seodisparate.com - AnotherAURHelper/commitdiff
Don't generate user chroot if already once
authorStephen Seo <seo.disparate@gmail.com>
Tue, 2 Apr 2024 05:09:14 +0000 (14:09 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Tue, 2 Apr 2024 05:09:14 +0000 (14:09 +0900)
update.py

index 1b370942409e75138ee24d89c10ff1e7c1dec7d2..f78d334f62654f5aa37e824ce7ccf3e8c8a07980 100755 (executable)
--- 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!",