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

rpmte: Move dependencies into an unordered_map #3538

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

Conversation

ffesti
Copy link
Contributor

@ffesti ffesti commented Jan 24, 2025

Get rid of requires_ hack to avoid collision with requires keyword.

Also the dependencies are looked up by tag anyway. No need for a case statements when we can use a container instead.

Related: #3537
Related: #3518

Get rid of requires_ hack to avoid collision with requires keyword.

Also the dependencies are looked up by tag anyway. No need for a case
statements when we can use a container instead.

Related: rpm-software-management#3537
Related: rpm-software-management#3518
@ffesti ffesti requested a review from a team as a code owner January 24, 2025 13:29
@ffesti ffesti requested review from pmatilai and removed request for a team January 24, 2025 13:29
RPMTAG_PROVIDENAME, RPMTAG_SUPPLEMENTNAME, RPMTAG_ENHANCENAME,
RPMTAG_REQUIRENAME, RPMTAG_RECOMMENDNAME, RPMTAG_SUGGESTNAME,
RPMTAG_CONFLICTNAME, RPMTAG_OBSOLETENAME, RPMTAG_ORDERNAME
}) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use code for what you can easily put into a data structure. Here's a nice opportunity to do just that.

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.

2 participants