contrib/makerepo: fix detection of centpkg for git+ssh:// remotes

This commit is contained in:
Thomas Haller 2021-08-20 11:43:33 +02:00
parent ea49b50651
commit c8d80f332d
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -88,7 +88,7 @@ if [[ "$FEDPKG" == "" ]]; then
URL="$(git config --get "remote.$REMOTE.url")"
if [[ "$URL" = *'pkgs.devel.redhat.com'* ]]; then
FEDPKG=rhpkg
elif [[ "$URL" = *'gitlab.com:redhat/centos-stream'* ]]; then
elif [[ "$URL" = *'gitlab.com'*'redhat/centos-stream'* ]]; then
FEDPKG=centpkg
elif [[ "$URL" = *'pkgs.fedoraproject.org/'* ]]; then
FEDPKG=fedpkg