dev-java/openjdk: don't die on ccache if binpkg is being used

Bug: https://bugs.gentoo.org/677876
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
This commit is contained in:
Georgy Yakovlev
2020-05-10 21:42:25 -07:00
parent 65857dd657
commit 91385d013b
2 changed files with 6 additions and 2 deletions

View File

@@ -96,7 +96,9 @@ openjdk_check_requirements() {
pkg_pretend() {
openjdk_check_requirements
has ccache ${FEATURES} && die "FEATURES=ccache doesn't work with ${PN}"
if [[ ${MERGE_TYPE} != binary ]]; then
has ccache ${FEATURES} && die "FEATURES=ccache doesn't work with ${PN}"
fi
}
pkg_setup() {

View File

@@ -95,7 +95,9 @@ openjdk_check_requirements() {
pkg_pretend() {
openjdk_check_requirements
has ccache ${FEATURES} && die "FEATURES=ccache doesn't work with ${PN}"
if [[ ${MERGE_TYPE} != binary ]]; then
has ccache ${FEATURES} && die "FEATURES=ccache doesn't work with ${PN}"
fi
}
pkg_setup() {