Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ngclient: simplify storing a downloaded file
Replace the usage of securesystemslib.util.persist_temp_file() with shutil.copyfileobj() as file system abstraction is not used in the client. This way we prevent securesystemslib.exception.StorageError from leaking through client API calls. Note: with those changes we are no longer do fsync. Signed-off-by: Martin Vrachev <[email protected]>
- Loading branch information