mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
Merge pull request #4482 from vpeter4/unpack-circular
unpack: prevent circular unpacking between two packages
This commit is contained in:
commit
0e5e0512b7
@ -20,9 +20,16 @@ pkg_lock "${PKG_NAME}" "unpack" "${PARENT_PKG}"
|
||||
${SCRIPTS}/get "${PKG_NAME}"
|
||||
|
||||
if [ -n "${PKG_DEPENDS_UNPACK}" ]; then
|
||||
export _unpack_recursive_cnt=$((_unpack_recursive_cnt+1))
|
||||
if [ ${_unpack_recursive_cnt} -gt 2 ]; then
|
||||
die "unpack recursive limit hit: ${PKG_DEPENDS_UNPACK}, ${PARENT_PKG}"
|
||||
fi
|
||||
|
||||
for p in ${PKG_DEPENDS_UNPACK}; do
|
||||
${SCRIPTS}/unpack "${p}" "${PARENT_PKG}"
|
||||
done
|
||||
|
||||
unset _unpack_recursive_cnt
|
||||
fi
|
||||
|
||||
STAMP="${PKG_BUILD}/.libreelec-unpack"
|
||||
|
Loading…
x
Reference in New Issue
Block a user