forked from importers/git-importer
Download .spec and .changes file only for now
This commit is contained in:
@@ -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())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user