Skip to content

Commit

Permalink
Merge pull request #1204 from z3ntu/github-archive
Browse files Browse the repository at this point in the history
Fix osc add for github /archive/ URLs
  • Loading branch information
dmach committed Dec 13, 2022
2 parents ea17c6c + ace4612 commit 33a5b54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osc/commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -4712,7 +4712,7 @@ def do_add(self, subcmd, opts, *args):
# 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') 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'):
addGitSource(arg)
elif arg.startswith('http://') or arg.startswith('https://') or arg.startswith('ftp://'):
Expand Down

0 comments on commit 33a5b54

Please sign in to comment.