mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-01-30 19:21:59 +00:00
abuild: Fix always reporting ccache as missing when USE_CCACHE=1
This commit is contained in:
parent
140d8ab82c
commit
83f19b7fd8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user