diff --git a/dnf/automatic/main.py b/dnf/automatic/main.py index f6f4049ba9..caef627fc9 100644 --- a/dnf/automatic/main.py +++ b/dnf/automatic/main.py @@ -375,8 +375,7 @@ def main(args): def upgrade(base, upgrade_type): if upgrade_type == 'security': - base._update_security_filters.append(base.sack.query().upgrades().filterm( - advisory_type='security')) + base.add_security_filters("gte", ("security",)) base.upgrade_all() elif upgrade_type == 'default': base.upgrade_all()