Skip to content

Commit

Permalink
Ports: Add pre_fetch to .port_include.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Cleverking2003 authored and linusg committed Jun 10, 2021
1 parent a0412e0 commit 142f9db
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Ports/.port_include.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -421,6 +425,7 @@ do_fetch() {
}
do_patch() {
echo "Patching $port!"
pre_patch
patch_internal
}
do_configure() {
Expand Down

0 comments on commit 142f9db

Please sign in to comment.