Skip to content

fix(sos): add dnf5 support in dnf plugin#17074

Open
eric-desrochers wants to merge 1 commit intomicrosoft:tomls/base/mainfrom
eric-desrochers:tomlsdnf5sos
Open

fix(sos): add dnf5 support in dnf plugin#17074
eric-desrochers wants to merge 1 commit intomicrosoft:tomls/base/mainfrom
eric-desrochers:tomlsdnf5sos

Conversation

@eric-desrochers
Copy link
Copy Markdown
Contributor

Handling DNF5 changes where legacy dnf commands produce Missing command or Unknown argument errors.

Handling DNF5 changes where legacy dnf commands produce
Missing command or Unknown argument errors, while
preserving existing dnf support unchanged.

Signed-off-by: Eric Desrochers <eric.desrochers@microsoft.com>
Copilot AI review requested due to automatic review settings May 7, 2026 14:10
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the sos component to better tolerate DNF5 CLI changes by adding a downstream patch to the dnf sos plugin, and bumps the rendered spec release/changelog accordingly.

Changes:

  • Add a new downstream patch introducing initial DNF5 handling in sos/report/plugins/dnf.py.
  • Wire the patch into the sos component overlays and the rendered spec (new Patch2), and bump the rpmautospec release/changelog.
  • Refresh the sos.lock input fingerprint to reflect the component definition change.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
specs/s/sos/sos.spec Rendered spec updated to include the new patch and release/changelog bump.
specs/s/sos/dnf-initial-dnf5-support-in-dnf-plugin.patch Rendered copy of the new DNF5 support patch.
locks/sos.lock Updated input fingerprint for the modified component configuration.
base/comps/sos/sos.comp.toml Adds a patch-add overlay to apply the new DNF5 support patch.
base/comps/sos/dnf-initial-dnf5-support-in-dnf-plugin.patch Source-of-truth patch content applied via overlay during render/build.

tags='dnf_module_info')

def setup(self):
+ has_dnf5 = self.is_installed('dnf5')
Comment on lines +41 to +42
self.add_cmd_output('dnf -C repolist',
tags=['yum_repolist', 'dnf_repolist'])
"/etc/pki/entitlement/*.pem"
])

+ cmd = f"dnf history {'list' if self.is_installed('dnf5') else ''}"
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