Skip to content
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

Make the repo script usable from other scripts #873

Closed
cminyard opened this issue May 24, 2019 · 1 comment
Closed

Make the repo script usable from other scripts #873

cminyard opened this issue May 24, 2019 · 1 comment

Comments

@cminyard
Copy link

The repo.py script is a useful tool by itself, and it has useful functions in it for other scripts.

My proposal is to split up argument parsing so that another script can provide all the functions from repo.py and add its own on top of that. repo.py has some useful function by itself.

I would also like to make the code that writes updated targets it's own function. If you have a script that modifies target files, it's going to have to duplicate that code, and duplication is bad.

I'm working on a project that takes manifest files and a set of files they point to and automatically populates a repository in a way that some client code can automatically tell what is new, updated, and deleted and call a program with that information. That's at https://github.com/MontaVista-OpenSourceTechnology/meta-tuf and it currently requires the attached patches to TUF. Basically to make TUF a little easier to use.
0001-Split-up-parse_arguments.patch.txt
0002-Split-out-write_updated_targets-from-add_targets.patch.txt

@lukpueh
Copy link
Member

lukpueh commented Sep 17, 2019

Closing due to uncertain future of TUF cli. Re-visit with #811.

@lukpueh lukpueh closed this as completed Sep 17, 2019
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