libnetwork: git.download: don't recreate package if already existing

This commit is contained in:
Silvan Calarco 2024-11-08 21:36:52 +01:00
parent 85b067df45
commit 42cb6b3270

View File

@ -918,6 +918,13 @@ function git.download() {
notify.debug "$FUNCNAME: token_dirname = \"$token_dirname\"" notify.debug "$FUNCNAME: token_dirname = \"$token_dirname\""
notify.debug "$FUNCNAME: token_basename = \"$token_basename\"" 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/*\/}" local git_branch="${token_dirname/*\/}"
notify.debug "$FUNCNAME: git_branch = \"$git_branch\"" notify.debug "$FUNCNAME: git_branch = \"$git_branch\""