Merge pull request #1611 from fewtarius/dev

Add pre_get hook to enable actions before fetching source, will be helpful to work around constantly breaking repos.
This commit is contained in:
fewtarius 2023-06-21 20:43:40 -04:00 committed by GitHub
commit 85b4b38c6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -1163,7 +1163,7 @@ unset_functions() {
unset -f configure_package
unset -f pre_unpack unpack post_unpack
unset -f pre_unpack unpack post_unpack pre_get
unset -f pre_patch post_patch
for target in target host init bootstrap; do

View file

@ -18,6 +18,8 @@ PARENT_PKG="${2:-${PKG_NAME}}"
pkg_lock "${PKG_NAME}" "unpack" "${PARENT_PKG}"
pkg_call_exists pre_get && pkg_call pre_get
${SCRIPTS}/get "${PKG_NAME}"
if [ -n "${PKG_DEPENDS_UNPACK}" ]; then