Correctly clone rpms/<package>

Signed-off-by: Troy Dawson <tdawson@redhat.com>
This commit is contained in:
Troy Dawson 2023-08-15 07:03:01 -07:00
parent fbdb66146c
commit fb42b297a7

View file

@ -285,6 +285,9 @@ class centpkgClient(cliClient):
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]:
project_name_with_namespace = "redhat/centos-stream/"+self.args.repo[0]
short_name=self.args.repo[0].split("/")[1]
else:
project_name_with_namespace = "redhat/centos-stream/rpms/"+self.args.repo[0]
short_name=self.args.repo[0]