From a76ec2fd3c1bed05f112a5dccab462390230975f Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Wed, 19 Jun 2013 10:40:18 +0200 Subject: [PATCH] pck-update: don't clone from git repository at every build is source with current version already exists --- plugins/pck-update.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/pck-update.in b/plugins/pck-update.in index ff83fb0..bdc38e9 100644 --- a/plugins/pck-update.in +++ b/plugins/pck-update.in @@ -1971,9 +1971,10 @@ rpmvars.solve "$fullURL" "$SRPM_SPECFILE_WITH_PATH") case "$fullURL" in git://*|http://*.git|https://*.git) - git.download \ - --pck-version "$pck_rpmversion" \ - --destdir="$source_dir" "$fullURL" + [ -e "${source_dir}/${fullURL/*\/}" -a "$force_download" != "1" ] || \ + git.download \ + --pck-version "$pck_rpmversion" \ + --destdir="$source_dir" "$fullURL" ;; *) curl.download --options "$curl_options" $sdflag \ ${proxy:+--proxy $proxy} ${proxy_user:+--proxy-user $proxy_user} \