diff options
| author | Scott Bahling <sbahling@suse.com> | 2020-01-25 22:01:49 +0100 |
|---|---|---|
| committer | Scott Bahling <sbahling@suse.com> | 2020-01-25 22:10:04 +0100 |
| commit | 47b21a0ed5eee2fd6180715c981ec06d4203a522 (patch) | |
| tree | 2de834acad8e5ea96163aa38385c539067bca304 /obsapi/buildapi.py | |
| parent | fe0af7003bbb783814c50f317d35aadc45c82fc6 (diff) | |
| download | obsapi-47b21a0ed5eee2fd6180715c981ec06d4203a522.tar.gz obsapi-47b21a0ed5eee2fd6180715c981ec06d4203a522.tar.xz obsapi-47b21a0ed5eee2fd6180715c981ec06d4203a522.zip | |
Fix get_repository call for retrieving binary objects
Enhance test case
Diffstat (limited to 'obsapi/buildapi.py')
| -rw-r--r-- | obsapi/buildapi.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/obsapi/buildapi.py b/obsapi/buildapi.py index 893a213..caa09d0 100644 --- a/obsapi/buildapi.py +++ b/obsapi/buildapi.py @@ -58,7 +58,8 @@ class ObsBuildApi(ObsHttpApi): return self.__get(prj, repo, arch, pkg, '_log') def get_repository(self, prj, repo, arch, binaryname=''): - return self.__get(prj, repo, arch, '_repository', binaryname) + # Important! We call self.get() to handle binary get properly + return self.get(prj, repo, arch, '_repository', binaryname) def put_repository(self, prj, repo, arch, filename, data): return self.__put(prj, repo, arch, '_repository', filename, data=data) |
