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

View File

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