1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-13 09:16:14 +01:00

Merge pull request #1027 from adrianschroeter/github

add another exception for github URLs for "osc add"
This commit is contained in:
Daniel Mach 2022-06-02 10:21:02 +02:00 committed by GitHub
commit fad89f8e09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4862,7 +4862,9 @@ Please submit there instead, or use --nodevelproject to force direct submission.
# Do some magic here, when adding a url. We want that the server to download the tar ball and to verify it
for arg in parseargs(args):
if arg.endswith('.git') or arg.startswith('git://') or arg.startswith('git@') or arg.startswith('https://github.com') or arg.startswith('https://gitlab.com'):
if arg.endswith('.git') or arg.startswith('git://') or \
arg.startswith('git@') or (arg.startswith('https://github.com') and not '/releases/' in arg) or \
arg.startswith('https://gitlab.com'):
addGitSource(arg)
elif arg.startswith('http://') or arg.startswith('https://') or arg.startswith('ftp://'):
addDownloadUrlService(arg)