Skip to content

make sure tempfile is alive when it's used#2114

Merged
RoyStegeman merged 2 commits into
masterfrom
rs_quickfix
Jun 20, 2024
Merged

make sure tempfile is alive when it's used#2114
RoyStegeman merged 2 commits into
masterfrom
rs_quickfix

Conversation

@RoyStegeman
Copy link
Copy Markdown
Member

@RoyStegeman RoyStegeman commented Jun 20, 2024

The first commit is the relevant one.

We create a tempfile to download files such as ekos to, and then move that file to eko.tar (or whatever the target path is). However, the moving is done outside the context manager, so if delete_on_failure is true, the tempfile that should be moved to eko.tar has already been deleted before it's moved.

@RoyStegeman RoyStegeman requested a review from andreab1997 June 20, 2024 13:31
@RoyStegeman RoyStegeman added the bug Something isn't working label Jun 20, 2024
@andreab1997
Copy link
Copy Markdown
Contributor

Looks good to me, thanks!

@RoyStegeman RoyStegeman merged commit 9c17171 into master Jun 20, 2024
@RoyStegeman RoyStegeman deleted the rs_quickfix branch June 20, 2024 14:50
@RoyStegeman RoyStegeman mentioned this pull request Jun 27, 2024
33 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants