Skip to content

Updater: close file object #1226

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 27, 2020

Conversation

jku
Copy link
Member

@jku jku commented Nov 27, 2020

Fix a tiny issue in test server output and close a dangling tempfile in Updater. This is the last unclosed fileobject that our tests find so:
Fixes #1123

  • The code follows the Code Style Guidelines
  • Tests have been added for the bug fix or new feature
  • Docs have been added for the bug fix or new feature

Jussi Kukkonen added 2 commits November 27, 2020 12:18
If during updater.download_target() the download succeeds but a later
check fails (e.g. BadHashError), remember to close the tempfile.

Signed-off-by: Jussi Kukkonen <[email protected]>
@jku jku changed the title Updater close file object Updater: close file object Nov 27, 2020
Copy link
Member

@lukpueh lukpueh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@lukpueh lukpueh merged commit fc4b77f into theupdateframework:develop Nov 27, 2020
@jku jku deleted the updater-close-file-object branch December 30, 2024 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Resource warnings when running the test files
2 participants