Forráskód Böngészése

Ports: Add pre_fetch to .port_include.sh

Egor Ananyin 4 éve
szülő
commit
142f9db5bd
1 módosított fájl, 5 hozzáadás és 0 törlés
  1. 5 0
      Ports/.port_include.sh

+ 5 - 0
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() {