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.
This commit is contained in:
parent
eb8fa7805a
commit
3fe21d176a
1 changed files with 4 additions and 2 deletions
|
@ -1387,8 +1387,10 @@ def update_pkg_list(
|
||||||
]
|
]
|
||||||
failure = False
|
failure = False
|
||||||
if "ccache_dir" in pkg_state[pkg]:
|
if "ccache_dir" in pkg_state[pkg]:
|
||||||
|
if not "ccache" in pkg_state[pkg]["other_deps"]:
|
||||||
pkg_state[pkg]["other_deps"].append("ccache")
|
pkg_state[pkg]["other_deps"].append("ccache")
|
||||||
elif "sccache_dir" in pkg_state[pkg]:
|
elif "sccache_dir" in pkg_state[pkg]:
|
||||||
|
if not "sccache" in pkg_state[pkg]["other_deps"]:
|
||||||
pkg_state[pkg]["other_deps"].append("sccache")
|
pkg_state[pkg]["other_deps"].append("sccache")
|
||||||
if len(pkg_state[pkg]["other_deps"]) != 0:
|
if len(pkg_state[pkg]["other_deps"]) != 0:
|
||||||
prefetch_result = prefetch_dependencies(
|
prefetch_result = prefetch_dependencies(
|
||||||
|
|
Loading…
Reference in a new issue