mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
config/path: don't copy .git and .svn dirs when using file:///SOMEDIR
packages can override that by setting PKG_TAR_COPY_OPTS. If this is set to an empty value everything will be copied.
This commit is contained in:
parent
6d07b46e97
commit
745c15f209
@ -102,6 +102,8 @@ if [ -n "$PKG_URL" -a -z "$PKG_SOURCE_NAME" ]; then
|
||||
PKG_SOURCE_NAME=${PKG_NAME}-${PKG_VERSION}
|
||||
elif [[ ${PKG_URL} =~ ^file:// ]]; then
|
||||
PKG_SOURCE_NAME=${PKG_URL#file://}
|
||||
# if no specific PKG_TAR_COPY_OPTS then default to excluding .git and .svn as they can be huge
|
||||
[ -z "${PKG_TAR_COPY_OPTS+x}" ] && PKG_TAR_COPY_OPTS="--exclude=.git --exclude=.svn"
|
||||
else
|
||||
PKG_SOURCE_NAME="${PKG_URL##*/}"
|
||||
case $PKG_SOURCE_NAME in
|
||||
|
Loading…
x
Reference in New Issue
Block a user