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,6 +1971,7 @@ rpmvars.solve "$fullURL" "$SRPM_SPECFILE_WITH_PATH")
case "$fullURL" in
git://*|http://*.git|https://*.git)
[ -e "${source_dir}/${fullURL/*\/}" -a "$force_download" != "1" ] || \
git.download \
--pck-version "$pck_rpmversion" \
--destdir="$source_dir" "$fullURL"