-
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
How to extract from rpm #222
Comments
There isn't an API for that yet unfortunately. We absolutely need one though. Maybe I can find some time for that this week. |
This for the quick reply, is there a way I could work around this in the meantime? :) |
The payload is (99.999% of the time) just a standard SVR4 CPIO archive. You can process it with a CPIO library of choice. |
I see, I assume it's available in this field (which makes sense): https://docs.rs/rpm/latest/rpm/struct.Package.html#structfield.content In the meantime I wrote a somewhat chaotic solution based on kpcyrd/what-the-src@2013e1b this has the advantage of being |
Hello! :)
I found this parsing library and I already figured out how to use
rpm::Package::parse
andget_file_entries()
, but I couldn't figure out how to read a file from the archive. It seemsrpm::FileEntry
does not have any way to be read.Do you have any pointers?
Thanks!
The text was updated successfully, but these errors were encountered: