mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-04-19 12:07:18 +00:00
scripts/unpack: avoid sub-process during custom unpack()
This commit is contained in:
parent
d376a63b49
commit
95c56a6392
@ -66,10 +66,10 @@ if [ -d "${SOURCES}/${PKG_NAME}" -o -d "${PKG_DIR}/sources" ]; then
|
||||
pkg_call_exists pre_unpack && pkg_call pre_unpack
|
||||
|
||||
if pkg_call_exists unpack; then
|
||||
(
|
||||
PKG_BUILD="${PKG_UNPACK_DIR}/${PKG_NAME}-${PKG_VERSION}"
|
||||
pkg_call unpack
|
||||
)
|
||||
PKG_BUILD_ORIG="${PKG_BUILD}"
|
||||
PKG_BUILD="${PKG_UNPACK_DIR}/${PKG_NAME}-${PKG_VERSION}"
|
||||
pkg_call unpack
|
||||
PKG_BUILD="${PKG_BUILD_ORIG}"
|
||||
else
|
||||
if [ -n "${PKG_URL}" ]; then
|
||||
${SCRIPTS}/extract "${PKG_NAME}" "${PKG_UNPACK_DIR}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user