diff options
Diffstat (limited to 'obsapi/core.py')
| -rw-r--r-- | obsapi/core.py | 5 |
1 files changed, 4 insertions, 1 deletions
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'), |
