java-ant-2.eclass: drop invalid local in global scope

Thanks to radhermit for reporting. Portage doesn't notice this because
it does sourcing in function-scope.

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2023-05-20 00:58:18 +01:00
parent 3cb247e73e
commit 8835e26e29

View File

@@ -59,7 +59,6 @@ if [[ -z "${JAVA_ANT_DISABLE_ANT_CORE_DEP}" ]]; then
fi
# add ant tasks specified in WANT_ANT_TASKS to DEPEND
local ANT_TASKS_DEPEND;
ANT_TASKS_DEPEND="$(java-pkg_ant-tasks-depend)"
# check that java-pkg_ant-tasks-depend didn't fail
if [[ $? != 0 ]]; then