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

if conditions in requirements #5

Open
wolfv opened this issue Nov 14, 2023 · 1 comment
Open

if conditions in requirements #5

wolfv opened this issue Nov 14, 2023 · 1 comment

Comments

@wolfv
Copy link

wolfv commented Nov 14, 2023

We came across some requirements that use "if" conditions. Should that be handled by this crate?

E.g.

      <rpm:entry name="(tpm2-tools if tpm2-tss)"/>

I actually don't know enough about RPM specs to understand what this is supposed to do.

@dralley
Copy link
Owner

dralley commented Nov 14, 2023

These are called "boolean dependencies" or "rich dependencies", there's some documentation here:

https://rpm-software-management.github.io/rpm/manual/boolean_dependencies.html

I wouldn't be against adding functions on the Requirement struct to make them easier to handle. The work could likely be re-used in (or shared with) the rpm crate.

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