From 745c15f209099a1e8bb222708d3ebca61afc5479 Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Thu, 1 Mar 2018 13:57:24 +0100 Subject: [PATCH] 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. --- config/path | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/path b/config/path index 5efdea8b28..d53ee100ef 100644 --- a/config/path +++ b/config/path @@ -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