1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-26 18:06:13 +01:00

Merge pull request #1204 from z3ntu/github-archive

Fix osc add for github /archive/ URLs
This commit is contained in:
Daniel Mach 2022-12-13 08:56:45 +01:00 committed by GitHub
commit 33a5b54838
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4712,7 +4712,7 @@ 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 # 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): for arg in parseargs(args):
if arg.endswith('.git') or arg.startswith('git://') or \ if arg.endswith('.git') or arg.startswith('git://') or \
arg.startswith('git@') or (arg.startswith('https://github.com') and '/releases/' not in arg) or \ arg.startswith('git@') or (arg.startswith('https://github.com') and '/releases/' not in arg and '/archive/' not in arg) or \
arg.startswith('https://gitlab.com'): arg.startswith('https://gitlab.com'):
addGitSource(arg) addGitSource(arg)
elif arg.startswith('http://') or arg.startswith('https://') or arg.startswith('ftp://'): elif arg.startswith('http://') or arg.startswith('https://') or arg.startswith('ftp://'):