abuild: Fix always reporting ccache as missing when USE_CCACHE=1

This commit is contained in:
Nathan Rennie-Waldock 2021-11-18 06:34:48 +00:00 committed by Natanael Copa
parent 140d8ab82c
commit 83f19b7fd8

View File

@ -2300,15 +2300,15 @@ builddeps() {
esac
calcdeps "$BUILD_BASE"
# shall ccache be added?
[ -n "$USE_CCACHE" ] && builddeps="$builddeps ccache"
# find which deps are missing
local mbd mhd missing
mbd=$(get_missing_deps "" $builddeps) || return 1
mhd=$(get_missing_deps "--root $CBUILDROOT --arch $CTARGET_ARCH" $hostdeps) || return 1
missing=$(echo $mbd $mhd)
# shall ccache be added?
[ -n "$USE_CCACHE" ] && missing="$missing ccache"
if [ -z "$install_deps" ]; then
# if we dont have any missing deps we are done now
[ -z "$missing" ] && return 0