summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2023-02-17 10:36:34 +0100
committerMiroslav Šulc <fordfrog@gentoo.org>2023-02-17 14:47:50 +0100
commit0a249fb08e3a498b459e827dd9359509510cf139 (patch)
tree94e47d7bd92b08f52a35319e660922c1e4f8fd7a /eclass
parentjava-utils-2.eclass: default to default_src_prepare for future EAPI (diff)
downloadgentoo-0a249fb08e3a498b459e827dd9359509510cf139.tar.gz
gentoo-0a249fb08e3a498b459e827dd9359509510cf139.tar.bz2
gentoo-0a249fb08e3a498b459e827dd9359509510cf139.zip
java-utils-2.eclass: use find with -path instead of -wholename
according to man page, -wholename is less portable than -path. Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/29626 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/java-utils-2.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass
index 2ccf337b191d..c1f42408e462 100644
--- a/eclass/java-utils-2.eclass
+++ b/eclass/java-utils-2.eclass
@@ -2947,7 +2947,7 @@ is-java-strict() {
java-pkg_clean() {
NO_DELETE=()
for keep in ${JAVA_PKG_NO_CLEAN[@]}; do
- NO_DELETE+=( '!' '-wholename' ${keep} )
+ NO_DELETE+=( '!' '-path' ${keep} )
done
find "${@}" '(' -name '*.class' -o -name '*.jar' ${NO_DELETE[@]} ')' -type f -delete -print || die
}