Commit 2b1dbb0b1d40f03e4abc953654aa5de9320ab7c8

Authored by Silvan Calarco
1 parent b5b1121aee
Exists in master

pck-update.in: support for http+git and https+git fake protocols to indicate a git repository

Showing 1 changed file with 4 additions and 2 deletions Side-by-side Diff

plugins/pck-update.in
... ... @@ -1204,7 +1204,8 @@
1204 1204 notify.debug "fullURL_new = $fullURL_new"
1205 1205  
1206 1206 case "$fullURL_new" in
1207   - git://*|http://*.git/*|https://*.git/*)
  1207 + git://*|http://*.git/*|https://*.git/*|http+git://*|https+git://*)
  1208 + fullURL_new="${fullURL_new/+git}"
1208 1209 git.download \
1209 1210 --pck-version "$pck_newver" \
1210 1211 --destdir="$source_dir" "$fullURL_new"
... ... @@ -2051,7 +2052,8 @@
2051 2052 notify.debug "fullURL = $fullURL"
2052 2053  
2053 2054 case "$fullURL" in
2054   - git://*|http://*.git/*|https://*.git/*)
  2055 + git://*|http://*.git/*|https://*.git/*|http+git://*|https+git://*)
  2056 + fullURL="${fullURL/+git}"
2055 2057 [ -e "${source_dir}/${fullURL/*\/}" -a "$force_download" != "1" ] || \
2056 2058 git.download \
2057 2059 --pck-version "$pck_rpmversion" \