pck-update.in: support for http+git and https+git fake protocols to indicate a git repository
This commit is contained in:
parent
b5b1121aee
commit
2b1dbb0b1d
@ -1204,7 +1204,8 @@ rpmvars.solve "$fullURL_new" "$SRPM_SPECFILE_WITH_PATH")
|
|||||||
notify.debug "fullURL_new = $fullURL_new"
|
notify.debug "fullURL_new = $fullURL_new"
|
||||||
|
|
||||||
case "$fullURL_new" in
|
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 \
|
git.download \
|
||||||
--pck-version "$pck_newver" \
|
--pck-version "$pck_newver" \
|
||||||
--destdir="$source_dir" "$fullURL_new"
|
--destdir="$source_dir" "$fullURL_new"
|
||||||
@ -2051,7 +2052,8 @@ rpmvars.solve "$fullURL" "$SRPM_SPECFILE_WITH_PATH")
|
|||||||
notify.debug "fullURL = $fullURL"
|
notify.debug "fullURL = $fullURL"
|
||||||
|
|
||||||
case "$fullURL" in
|
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" ] || \
|
[ -e "${source_dir}/${fullURL/*\/}" -a "$force_download" != "1" ] || \
|
||||||
git.download \
|
git.download \
|
||||||
--pck-version "$pck_rpmversion" \
|
--pck-version "$pck_rpmversion" \
|
||||||
|
Loading…
Reference in New Issue
Block a user