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:
commit
85b4b38c6e
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue