eclass/java-utils-2: Sync with Gentoo

It's from Gentoo commit f007377cffdcdc04c349494481be5dc01ce313f9.
This commit is contained in:
Flatcar Buildbot 2024-01-29 07:12:57 +00:00 committed by Krzesimir Nowak
parent c8bc0f48e9
commit 10851aff31

View File

@ -1,4 +1,4 @@
# Copyright 2004-2023 Gentoo Authors
# Copyright 2004-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: java-utils-2.eclass
@ -1972,7 +1972,10 @@ etestng() {
# src_prepare Searches for bundled jars
# Don't call directly, but via java-pkg-2_src_prepare!
java-utils-2_src_prepare() {
eapply_user
case ${EAPI} in
[678]) eapply_user ;;
*) default_src_prepare ;;
esac
# Check for files in JAVA_RM_FILES array.
if [[ ${JAVA_RM_FILES[@]} ]]; then