diff options
| author | Scott Bahling <sbahling@suse.com> | 2020-01-25 22:27:16 +0100 |
|---|---|---|
| committer | Scott Bahling <sbahling@suse.com> | 2020-01-25 22:27:16 +0100 |
| commit | 488fe5d1b1eabbf971cfacc573401e53e88274f1 (patch) | |
| tree | ea2907750a53aec8ce9ac777ea16dd297b30e114 /obsapi | |
| parent | 0fcb8de56710214331dc0dcd08b69f5d552dd186 (diff) | |
| download | obsapi-488fe5d1b1eabbf971cfacc573401e53e88274f1.tar.gz obsapi-488fe5d1b1eabbf971cfacc573401e53e88274f1.tar.xz obsapi-488fe5d1b1eabbf971cfacc573401e53e88274f1.zip | |
Enhance binaries_ls method to return project level binary lists
Diffstat (limited to 'obsapi')
| -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'), |
