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/'
This commit is contained in:
Silvan Calarco 2013-07-28 18:09:05 +02:00 committed by Davide Madrisan
parent 46ec87de31
commit eb1d352c92

View File

@ -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" \