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

automatic: Use add_security_filters, not _update_security_filters #2044

Conversation

evan-goode
Copy link
Member

Resolves https://issues.redhat.com/browse/RHEL-21874

It seems that selecting security updates with

base._update_security_filters.append(base.sack.query().upgrades().filterm(
    advisory_type='security'))

sometimes results in a bad transaction. The regular dnf update command uses base.add_security_filters to select security updates, so dnf-automatic should do the same.

Resolves https://issues.redhat.com/browse/RHEL-21874

It seems that these two approaches for selecting security updates
sometimes disagree. The regular `dnf update` command uses
base.add_security_filters to select security updates, so dnf-automatic
should do the same.
@evan-goode evan-goode self-assigned this Feb 1, 2024
Copy link
Contributor

@kontura kontura left a comment

Choose a reason for hiding this comment

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

Looks good.
Perhaps we could also create a CI test to make sure it works in dnf5 as well.

@kontura kontura merged commit 0b4b8cc into rpm-software-management:master Feb 5, 2024
3 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants