From ace4612a832ea63dcf376f3557784aade05f8235 Mon Sep 17 00:00:00 2001 From: Luca Weiss Date: Mon, 12 Dec 2022 18:15:40 +0100 Subject: [PATCH] Fix osc add for github /archive/ URLs "osc add https://github.com/foo/bar/archive/12345.tar.gz" should treat the URL as archive and not as git source. --- osc/commandline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index d303cff0..fc97cdf9 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -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 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://'):