]> git.seodisparate.com - AnotherAURHelper/commitdiff
Minor tweak to build status print
authorStephen Seo <seo.disparate@gmail.com>
Sat, 11 Nov 2023 02:24:05 +0000 (11:24 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Sat, 11 Nov 2023 02:27:45 +0000 (11:27 +0900)
update.py

index 3d9539f3603e9b28ae555e4dec6b81c2153f4f24..e9694414bf2e4d907ceae519088347836937165f 100755 (executable)
--- a/update.py
+++ b/update.py
@@ -1600,8 +1600,12 @@ def print_state_info_and_get_update_list(
     log_print("package state:", other_state=other_state)
     for pkg_name, pkg_dict in pkg_state.items():
         if "state" in pkg_dict:
+            state_length = 11 - len(pkg_dict["state"])
+            if state_length <= 0:
+                state_length = 1
+            space_str = " " * state_length
             log_print(
-                f"    {pkg_name:40}: pre_state is \"{pkg_dict['state']}\", build_state is \"{pkg_dict['build_status']}\"",
+                f"    {pkg_name:40}: pre_state is \"{pkg_dict['state']}\",{space_str}build_state is \"{pkg_dict['build_status']}\"",
                 other_state=other_state,
             )
             if pkg_dict["state"] == "install":