From 75ceb34ee81e98a4095c7770f85984a22a8c58d5 Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Aug 28 2023 15:49:48 +0000 Subject: Treat all slashes the same Signed-off-by: Troy Dawson --- diff --git a/src/centpkg/cli.py b/src/centpkg/cli.py index 38d4377..19d1f8b 100755 --- a/src/centpkg/cli.py +++ b/src/centpkg/cli.py @@ -282,10 +282,7 @@ class centpkgClient(cliClient): # Since gitlab allows git repos to be checked out with incorrect capitilization # we need to check the spelling when cloning gl = gitlab.Gitlab(_DEFAULT_API_BASE_URL) - if "modules/" in self.args.repo[0]: - project_name_with_namespace = "redhat/centos-stream/"+self.args.repo[0] - short_name=self.args.repo[0].split("/")[1] - if "rpms/" in self.args.repo[0]: + if "/" in self.args.repo[0]: project_name_with_namespace = "redhat/centos-stream/"+self.args.repo[0] short_name=self.args.repo[0].split("/")[1] else: