Sfoglia il codice sorgente

Ports: Remove the ability to override `fetch` and `patch_internal`

Tim Schumacher 1 anno fa
parent
commit
ce556c9566
1 ha cambiato i file con 2 aggiunte e 3 eliminazioni
  1. 2 3
      Ports/.port_include.sh

+ 2 - 3
Ports/.port_include.sh

@@ -402,8 +402,7 @@ fetch_git() {
     fi
     fi
 }
 }
 
 
-# FIXME: Don't allow overriding fetch, support multiple protocols instead. See #20004
-func_defined fetch || fetch() {
+fetch() {
     pre_fetch
     pre_fetch
 
 
     for f in "${files[@]}"; do
     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
     if [ -n "${IN_SERENITY_PORT_DEV:-}" ]; then
         return
         return
     fi
     fi