From eb1d352c92016a6eb2216a386fb098a62b3a1774 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 a4442b8..1568ea3 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" \