From 2b1dbb0b1d40f03e4abc953654aa5de9320ab7c8 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Tue, 5 Jul 2016 22:49:42 +0200 Subject: [PATCH] pck-update.in: support for http+git and https+git fake protocols to indicate a git repository --- plugins/pck-update.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/pck-update.in b/plugins/pck-update.in index 41921df..02857cd 100644 --- a/plugins/pck-update.in +++ b/plugins/pck-update.in @@ -1204,7 +1204,8 @@ 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/*|http+git://*|https+git://*) + fullURL_new="${fullURL_new/+git}" git.download \ --pck-version "$pck_newver" \ --destdir="$source_dir" "$fullURL_new" @@ -2051,7 +2052,8 @@ rpmvars.solve "$fullURL" "$SRPM_SPECFILE_WITH_PATH") notify.debug "fullURL = $fullURL" case "$fullURL" in - git://*|http://*.git/*|https://*.git/*) + git://*|http://*.git/*|https://*.git/*|http+git://*|https+git://*) + fullURL="${fullURL/+git}" [ -e "${source_dir}/${fullURL/*\/}" -a "$force_download" != "1" ] || \ git.download \ --pck-version "$pck_rpmversion" \