Download .spec and .changes file only for now

This commit is contained in:
Stephan Kulow
2022-10-31 16:31:10 +01:00
parent bfdade8ecf
commit cfab0a522b
3 changed files with 52 additions and 6 deletions

View File

@@ -151,7 +151,9 @@ class OBS:
)
return osc.core.http_GET(url)
def download(self, project, package, name, revision, dirpath):
def download(
self, project: str, package: str, name: str, revision: str, dirpath: str
) -> None:
with (dirpath / name).open("wb") as f:
f.write(self._download(project, package, name, revision).read())