From 142f9db5bd7e122c29f8242a5c423b6bc154afad Mon Sep 17 00:00:00 2001 From: Egor Ananyin Date: Thu, 10 Jun 2021 19:57:29 +0300 Subject: [PATCH] Ports: Add pre_fetch to .port_include.sh --- Ports/.port_include.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Ports/.port_include.sh b/Ports/.port_include.sh index 805a74379c..102c549134 100755 --- a/Ports/.port_include.sh +++ b/Ports/.port_include.sh @@ -305,6 +305,10 @@ fetch() { post_fetch } +func_defined pre_patch || pre_patch() { + : +} + func_defined patch_internal || patch_internal() { # patch if it was not yet patched (applying patches multiple times doesn't work!) if [ -d patches ]; then @@ -421,6 +425,7 @@ do_fetch() { } do_patch() { echo "Patching $port!" + pre_patch patch_internal } do_configure() {