contrib: improve detection of fedpkg repository in "makerepo.sh"

This commit is contained in:
Thomas Haller 2022-04-06 09:46:14 +02:00
parent 261d74d881
commit a4da2eb5e5
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -90,7 +90,7 @@ if [[ "$FEDPKG" == "" ]]; then
FEDPKG=rhpkg
elif [[ "$URL" = *'gitlab.com'*'redhat/centos-stream'* ]]; then
FEDPKG=centpkg
elif [[ "$URL" = *'pkgs.fedoraproject.org/'* ]]; then
elif [[ "$URL" = *'pkgs.fedoraproject.org/'* || "$URL" = *'src.fedoraproject.org/'* ]]; then
FEDPKG=fedpkg
else
die "not inside dist-git repository? Check out a branch that has the dist-git remote tracking branch >>$PWD<<"