-
Notifications
You must be signed in to change notification settings - Fork 26
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
Unify file-related information under FileEntry (get_file_entries) #188
Conversation
We have an "empty" rpm with no files here, I'd prefer if you used that instead of adding a new one |
Also, I would kind of prefer to delete these methods entirely, and just make sure their functionality is present via |
17028c9
to
ff07ba0
Compare
Thanks, I've just done that. |
Yes, I also agree with the suggested approach. The only small drawback of the |
What do you mean? The whole header is "parsed" up-front. This function does clone a few values, and the timestamps and digests have a little bit of parsing, but I don't think it's particularly expensive. Ultimately it's not that difficult to fall back to fetching the tags directly if |
Ah, ok, that's what I mean. So if it's parsed, then it's fine. If you want, I can prepare yet another pull request where I'll unify all under the umbrella of |
The question is if you want to do it instead of this PR, or after that. What do you prefer? |
You can use this PR |
note to self: I really ought to finish my own PR that will allow fetching the contents of file entries out of the archive |
Do you want to omit the |
That one I think could potentially be useful on its own (and isn't trivial to implement) so it should probably stay. |
ff07ba0
to
5995e14
Compare
Support all file-related functions for a case where an RPM is free of files.
5995e14
to
bc5a7f8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great, thanks!
Support all file-related functions for a case where an RPM is free of files.