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
parent eb6986fe61
commit a8df37360d

View File

@ -1135,7 +1135,7 @@ 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/*)
git.download \ git.download \
--pck-version "$pck_newver" \ --pck-version "$pck_newver" \
--destdir="$source_dir" "$fullURL_new" --destdir="$source_dir" "$fullURL_new"
@ -1970,7 +1970,7 @@ 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/*)
[ -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" \