pck-update: don't clone from git repository at every build is source with current version already exists
This commit is contained in:
parent
8b06b41b20
commit
a76ec2fd3c
@ -1971,9 +1971,10 @@ rpmvars.solve "$fullURL" "$SRPM_SPECFILE_WITH_PATH")
|
|||||||
|
|
||||||
case "$fullURL" in
|
case "$fullURL" in
|
||||||
git://*|http://*.git|https://*.git)
|
git://*|http://*.git|https://*.git)
|
||||||
git.download \
|
[ -e "${source_dir}/${fullURL/*\/}" -a "$force_download" != "1" ] || \
|
||||||
--pck-version "$pck_rpmversion" \
|
git.download \
|
||||||
--destdir="$source_dir" "$fullURL"
|
--pck-version "$pck_rpmversion" \
|
||||||
|
--destdir="$source_dir" "$fullURL"
|
||||||
;;
|
;;
|
||||||
*) curl.download --options "$curl_options" $sdflag \
|
*) curl.download --options "$curl_options" $sdflag \
|
||||||
${proxy:+--proxy $proxy} ${proxy_user:+--proxy-user $proxy_user} \
|
${proxy:+--proxy $proxy} ${proxy_user:+--proxy-user $proxy_user} \
|
||||||
|
Loading…
Reference in New Issue
Block a user