libnetwork: git.download: don't recreate package if already existing
This commit is contained in:
parent
85b067df45
commit
42cb6b3270
@ -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\""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user