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

nevra: Add bool Nevra::operator<(const Nevra &) const #2192

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nikita-dubrovskii
Copy link
Contributor

Although a template<> cmp_nevra function exists, it cannot be used in Python bindings. This commit adds a member function overload for the < operator to enable comparison in bindings.

@nikita-dubrovskii nikita-dubrovskii requested a review from a team as a code owner April 11, 2025 08:39
@nikita-dubrovskii nikita-dubrovskii requested review from jan-kolarik and removed request for a team April 11, 2025 08:39
@nikita-dubrovskii nikita-dubrovskii force-pushed the nevra_operator_less branch 2 times, most recently from 0af58b1 to a382318 Compare April 11, 2025 09:08
@nikita-dubrovskii
Copy link
Contributor Author

This PR would allow such simplification - coreos/fedora-coreos-config@85f6ed1

Although a `template<> cmp_nevra` function exists, it cannot be used
in Python bindings. This commit adds a member function overloads for
all comparions operators to enable comparison in bindings.
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

Successfully merging this pull request may close these issues.

1 participant