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 committed by Davide Madrisan
parent 42400bcded
commit 46ec87de31

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"