]> git.seodisparate.com - AnotherAURHelper/commitdiff
"--no-skip" not ignored when check_hash is enabled dev main
authorStephen Seo <seo.disparate@gmail.com>
Thu, 27 Mar 2025 08:50:14 +0000 (17:50 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Mon, 21 Apr 2025 07:00:25 +0000 (16:00 +0900)
update.py

index 959df84768981c7d163f799be0be380a626565ad..99d70afb4b58288b05a1ab6007bcf0b3080dbdf8 100755 (executable)
--- a/update.py
+++ b/update.py
@@ -565,7 +565,10 @@ def check_pkg_build(
                 capture_output=True,
                 encoding="UTF-8",
             )
-            if result.stdout == pkg_state[pkg]["hash_compare_PKGBUILD_hash"]:
+            if (
+                result.stdout == pkg_state[pkg]["hash_compare_PKGBUILD_hash"]
+                and not pkg_state[pkg]["no_skip"]
+            ):
                 log_print(
                     "PKGBUILD did not change, continuing...",
                     other_state=other_state,
@@ -2292,6 +2295,9 @@ def main():
         for pkg in args.pkg:
             pkg_state[pkg] = {}
             pkg_state[pkg]["aur_deps"] = []
+            pkg_state[pkg]["no_skip"] = False
+            if pkg in args.no_skip:
+                pkg_state[pkg]["no_skip"] = True
         other_state["chroot"] = args.chroot
         other_state["pkg_out_dir"] = args.pkg_dir
         other_state["repo"] = args.repo
@@ -2330,6 +2336,8 @@ def main():
         d = toml.load(args.config)
         for entry in d["entry"]:
             pkg_state[entry["name"]] = {}
+            if not "no_skip" in pkg_state[entry["name"]]:
+                pkg_state[entry["name"]]["no_skip"] = False
             if "aur_deps" in entry:
                 pkg_state[entry["name"]]["aur_deps"] = entry["aur_deps"]
             else: