From 3fe21d176a5d8bc975322194a27247b9144aff86 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Mon, 8 Apr 2024 15:19:52 +0900 Subject: [PATCH] Ensure only one of s/ccache in "other_deps" When sccache/ccache is enabled for a pkg, ensure that "other_deps" for that package has at most 1 of sccache/ccache. --- update.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/update.py b/update.py index 920835b..7017465 100755 --- a/update.py +++ b/update.py @@ -1387,9 +1387,11 @@ def update_pkg_list( ] failure = False if "ccache_dir" in pkg_state[pkg]: - pkg_state[pkg]["other_deps"].append("ccache") + if not "ccache" in pkg_state[pkg]["other_deps"]: + pkg_state[pkg]["other_deps"].append("ccache") elif "sccache_dir" in pkg_state[pkg]: - pkg_state[pkg]["other_deps"].append("sccache") + if not "sccache" in pkg_state[pkg]["other_deps"]: + pkg_state[pkg]["other_deps"].append("sccache") if len(pkg_state[pkg]["other_deps"]) != 0: prefetch_result = prefetch_dependencies( pkg_state[pkg]["other_deps"], other_state