pck-update: don't clone from git repository at every build is source with current version already exists

This commit is contained in:
Silvan Calarco 2013-06-19 10:40:18 +02:00
parent 8b06b41b20
commit a76ec2fd3c

View File

@ -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} \