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

rpmlib: RPM database support #13

Closed
tony-iqlusion opened this issue Apr 8, 2018 · 1 comment
Closed

rpmlib: RPM database support #13

tony-iqlusion opened this issue Apr 8, 2018 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@tony-iqlusion
Copy link
Member

tony-iqlusion commented Apr 8, 2018

This issue tracks support for interacting with the RPM database. Presently no support is available.

Some reference information on the API is available here, courtesy the Fedora RPM Guide:

C API:

Python API:

The Python API informs us what the first hurdle will be:

Just about every Python RPM script needs a transaction set.


~~~So, the first step is figuring out how to resolve the bindgen test failure.~~~

~~~If you are interested in helping this issue move forward, the main place to start is investigating #11~~~

#11 is fixed, and #19 added initial support for transaction sets. This is ready to begin working on, if anyone is interested in contributing.

Mapping the RPM database APIs to idiomatic Rust looks fairly straightforward. The main API to the database, beyond a transaction set, is a transaction set iterator, and we all know how much Rust loves iterators. The docs also give clear instructions about the lifetime of memory, including the appropriate times where transaction-related objects should be freed (or don't need to be freed).
@tony-iqlusion tony-iqlusion added rpmlib help wanted Extra attention is needed good first issue Good for newcomers and removed good first issue Good for newcomers labels Apr 8, 2018
tarcieri pushed a commit that referenced this issue Apr 11, 2018
Initial support for querying the local RPM database and obtaining values from
the result headers.
tarcieri pushed a commit that referenced this issue Apr 11, 2018
Initial support for querying the local RPM database and obtaining values from
the result headers.
tarcieri pushed a commit that referenced this issue Apr 11, 2018
Initial support for querying the local RPM database and obtaining values from
the result headers.
tarcieri pushed a commit that referenced this issue Apr 11, 2018
Initial support for querying the local RPM database and obtaining values from
the result headers.
tony-iqlusion added a commit that referenced this issue Apr 11, 2018
Initial RPM database support (fixes #13)
@tony-iqlusion
Copy link
Member Author

Initial support for reading/querying the database was added in #24, however there's still quite a few more features that would be nice to add. I will open separate issues for those.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant