Skip to content

Consistent versions of root appear to be needlessly written multiple times #391

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

Closed
vladimir-v-diaz opened this issue Nov 2, 2016 · 2 comments

Comments

@vladimir-v-diaz
Copy link
Contributor

write_metadata_file() was modified in PRs #379 and #383 to always write root.json and <version>.root.json if consistent snapshots = True. Given these changes, we should refactor the following lines: https://github.com/theupdateframework/tuf/blob/0ce016b7b19a0fc15443eed657a90246ec5df0aa/tuf/repository_lib.py#L213-L224

Log files and a closer inspection of this code show that multiple attempts are made to write root.json.

Thanks given to @FelixWang1994 for bringing this issue to our attention.

@vladimir-v-diaz
Copy link
Contributor Author

This issue was fixed in #392 and #394

@FelixWang1994
Thanks for working on this issue.

@FelixWang1994
Copy link
Contributor

FelixWang1994 commented Nov 7, 2016

My pleasure!

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

No branches or pull requests

2 participants