]> git.seodisparate.com - AnotherAURHelper/commitdiff
Fixes to README.md and update.py
authorStephen Seo <seo.disparate@gmail.com>
Sat, 4 Jun 2022 07:15:41 +0000 (16:15 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Sat, 4 Jun 2022 07:15:41 +0000 (16:15 +0900)
README.md
update.py

index 6ba4063aadf7b031e27d756eeeb4abb30fe80abf..00a82e928eaaa4049063a4cce461d5d832f4fb8a 100644 (file)
--- a/README.md
+++ b/README.md
@@ -34,7 +34,7 @@ script to run.
 
 Use `/usr/bin/mkarchroot` to create your CHROOT in a directory.
 
-    mkarchroot $HOME/mychroot base base-devel ccache sccache
+    mkarchroot $HOME/mychroot/root base base-devel ccache sccache
 
 You must refer to the CHROOT as `$HOME/mychroot` if you used the same name as in
 the previous example.
index dfe7f13de258951350b1a3f6cd72d912e23245f4..55f37a5a9ae204bf1e47250a096a7c1d6bf2deb9 100755 (executable)
--- a/update.py
+++ b/update.py
@@ -1012,6 +1012,7 @@ if __name__ == "__main__":
 
     pkg_state = {}
     other_state = {}
+    other_state['logs_dir'] = None
     if args.pkg and not args.config:
         for pkg in args.pkg:
             pkg_state[pkg] = {}
@@ -1082,8 +1083,8 @@ if __name__ == "__main__":
         other_state['gpg_home'] = d["gpg_dir"]
         other_state['logs_dir'] = d["logs_dir"]
         other_state['clones_dir'] = d["clones_dir"]
-        if args_logs_dir is not None:
-            GLOBAL_LOG_FILE = args_logs_dir + "/update.py_logs"
+        if other_state['logs_dir'] is not None:
+            GLOBAL_LOG_FILE = other_state['logs_dir'] + "/update.py_logs"
             log_print(
                 f"{datetime.datetime.now(datetime.timezone.utc).strftime('%Y-%m-%d %H:%M %Z')}"
             )
@@ -1160,7 +1161,7 @@ if __name__ == "__main__":
                 sys.exit(1)
         if skip_on_same_ver:
             check_pkg_version_result = check_pkg_version(
-                pkg_list[i], pkg_state, args_repo, True, other_state
+                pkg_list[i], pkg_state, other_state['repo'], True, other_state
             )
             if check_pkg_version_result != "install":
                 log_print(f"Pkg {pkg_list[i]} is up to date, skipping...")
@@ -1192,7 +1193,7 @@ if __name__ == "__main__":
                 state_result = check_pkg_version_result
             else:
                 state_result = check_pkg_version(
-                    pkg_list[i], pkg_state, args_repo, False, other_state
+                    pkg_list[i], pkg_state, other_state['repo'], False, other_state
                 )
             confirm_result_result = confirm_result(pkg_list[i], state_result)
             if confirm_result_result == "continue":