From b7c2697f6ac6efd55722e816559e17e13deb64a1 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Wed, 26 Jul 2023 10:49:27 +0900 Subject: [PATCH] Apply "link_cargo_registry" in PKGBUILD ver. check --- update.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/update.py b/update.py index e3850ef..6b049d6 100755 --- a/update.py +++ b/update.py @@ -665,6 +665,17 @@ def get_pkgbuild_version( other_state["chroot"], ] post_command_list = ["--", "-s", "-r", "-c", "--nobuild"] + if "link_cargo_registry" in pkg_state[pkg]: + command_list.insert(2, "-d") + command_list.insert( + 3, + f'{os.environ["HOME"]}/.cargo/registry:/build/.cargo/registry', + ) + command_list.insert(4, "-d") + command_list.insert( + 5, + f'{os.environ["HOME"]}/.cargo/git:/build/.cargo/git', + ) for dep in pkg_state[pkg]["other_deps"]: dep_fullpath = get_latest_pkg(dep, "/var/cache/pacman/pkg") if not dep_fullpath: