forked from adamm/git-importer
Add the file_md5 to the download function so it can cache and verify
This commit is contained in:
@@ -152,7 +152,13 @@ class OBS:
|
||||
return osc.core.http_GET(url)
|
||||
|
||||
def download(
|
||||
self, project: str, package: str, name: str, revision: str, dirpath: str
|
||||
self,
|
||||
project: str,
|
||||
package: str,
|
||||
name: str,
|
||||
revision: str,
|
||||
dirpath: str,
|
||||
file_md5: 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