From ce556c95660d79a333f8d05b41b3140393c4b5cc Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Sat, 2 Sep 2023 09:21:01 +0200 Subject: [PATCH] Ports: Remove the ability to override `fetch` and `patch_internal` --- Ports/.port_include.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Ports/.port_include.sh b/Ports/.port_include.sh index 2469df0367..84c62cb366 100755 --- a/Ports/.port_include.sh +++ b/Ports/.port_include.sh @@ -402,8 +402,7 @@ fetch_git() { fi } -# FIXME: Don't allow overriding fetch, support multiple protocols instead. See #20004 -func_defined fetch || fetch() { +fetch() { pre_fetch for f in "${files[@]}"; do @@ -436,7 +435,7 @@ func_defined pre_patch || pre_patch() { : } -func_defined patch_internal || patch_internal() { +patch_internal() { if [ -n "${IN_SERENITY_PORT_DEV:-}" ]; then return fi