From a8df37360dff3c82aa6ba6d681173b6e9ce0052d Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sun, 28 Jul 2013 18:09:05 +0200 Subject: [PATCH] pck-update: fix update of git urls starting with http:// and https:// Source URLs from git don't just end with '.git', btw they can be detected by searching for '.git/' --- plugins/pck-update.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/pck-update.in b/plugins/pck-update.in index ac5f10c..4bddc41 100644 --- a/plugins/pck-update.in +++ b/plugins/pck-update.in @@ -1135,7 +1135,7 @@ rpmvars.solve "$fullURL_new" "$SRPM_SPECFILE_WITH_PATH") notify.debug "fullURL_new = $fullURL_new" case "$fullURL_new" in - git://*|http://*.git|https://*.git) + git://*|http://*.git/*|https://*.git/*) git.download \ --pck-version "$pck_newver" \ --destdir="$source_dir" "$fullURL_new" @@ -1970,7 +1970,7 @@ rpmvars.solve "$fullURL" "$SRPM_SPECFILE_WITH_PATH") notify.debug "fullURL = $fullURL" case "$fullURL" in - git://*|http://*.git|https://*.git) + git://*|http://*.git/*|https://*.git/*) [ -e "${source_dir}/${fullURL/*\/}" -a "$force_download" != "1" ] || \ git.download \ --pck-version "$pck_rpmversion" \