From 488fe5d1b1eabbf971cfacc573401e53e88274f1 Mon Sep 17 00:00:00 2001 From: Scott Bahling Date: Sat, 25 Jan 2020 22:27:16 +0100 Subject: Enhance binaries_ls method to return project level binary lists --- obsapi/core.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'obsapi/core.py') diff --git a/obsapi/core.py b/obsapi/core.py index c154674..f09ce3b 100644 --- a/obsapi/core.py +++ b/obsapi/core.py @@ -204,7 +204,10 @@ class ObsApi(object): def binaries_ls(self, prj, pkg, repo, arch): binaries = [] - xml = self.build.get(prj, repo, arch, pkg) + if pkg is None: + xml = self.build.get_repository(prj, repo, arch) + else: + xml = self.build.get(prj, repo, arch, pkg) if xml: blist = etree.fromstring(xml) binaries = [Binary(filename=i.get('filename'), -- cgit v1.2.3