From 42cb6b327059a9ea3867bb8024ae1fec9f9f2d83 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 8 Nov 2024 21:36:52 +0100 Subject: [PATCH] libnetwork: git.download: don't recreate package if already existing --- lib/libnetwork.lib.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/libnetwork.lib.in b/lib/libnetwork.lib.in index e5a0654..08c163b 100644 --- a/lib/libnetwork.lib.in +++ b/lib/libnetwork.lib.in @@ -918,6 +918,13 @@ function git.download() { notify.debug "$FUNCNAME: token_dirname = \"$token_dirname\"" notify.debug "$FUNCNAME: token_basename = \"$token_basename\"" + if [ -e $destdir/$token_basename ]; then + if [ "$force_download" = "0" ]; then + notify.note "[${filenum:-*}] $NOTE$token_basename$NORM ... "$"skipped" + return 0 + fi + fi + local git_branch="${token_dirname/*\/}" notify.debug "$FUNCNAME: git_branch = \"$git_branch\""