From b840cf3a832de815a87d9d10b698eec97aceb342 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Fri, 17 Oct 2025 20:57:18 +0100 Subject: get.sh: don't frivolously copy tmp git clones this fixes a regression in a previous patch, this time also taking account for the different cache locations. all of get.sh needs to be purged, and re-written clean. it looks clean. but it's years of hacks. Signed-off-by: Leah Rowe --- include/get.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/get.sh b/include/get.sh index e3e4c311..959bdd6e 100644 --- a/include/get.sh +++ b/include/get.sh @@ -53,9 +53,11 @@ fetch_project() clone_project() { - # if loc is blank, don't create a target - # directory; just update the caches - loc="" + loc="$XBMK_CACHE/clone/${url#*://}" + if [ "$XBMK_CACHE_MIRROR" = "y" ]; then + loc="$XBMK_CACHE/mirror/${url#*://}" + fi + if singletree "$project"; then loc="src/$project" fi -- cgit v1.2.1