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

Fix the dnf -> dnf4 alias #1476

Merged

Conversation

praiskup
Copy link
Member

Fixes: #1475

@praiskup praiskup force-pushed the praiskup-dnf4-aliase-no-2 branch 2 times, most recently from 9abe5f7 to 99164b6 Compare September 28, 2024 17:26
@praiskup praiskup added the release-blocker This needs to be shipped in the next release label Sep 28, 2024
When package_manager = dnf, 'dnf4' is to be selected and used when
bootstrap chroot is disabled.

This was not detected by test-suite; my bet is that we do tests with
testConfig=fedora-40-x86_64 which is already dnf5 and we have dnf5
installed on the testing machines.  I'm trying to modify one test-case
to test DNF4 chroot explicitly.

Fixes: rpm-software-management#1475
The rename of methods makes linter thing these are new issues:

- Ignore the f"" warning, as f-string is not optimal for this use-case.
- Use RuntimeError instead of the generic Exception.  It is still too
  generic and mock prints stack trace if it happens, but
  package_manager.py probably deserves it's own exception (rpm-software-management#1477).
Copy link
Member

@xsuchy xsuchy left a comment

Choose a reason for hiding this comment

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

+1

@xsuchy xsuchy merged commit 516144a into rpm-software-management:main Sep 30, 2024
20 of 21 checks passed
praiskup added a commit to praiskup/mock that referenced this pull request Sep 30, 2024
praiskup added a commit to praiskup/mock that referenced this pull request Sep 30, 2024
praiskup added a commit to praiskup/mock that referenced this pull request Sep 30, 2024
praiskup added a commit to praiskup/mock that referenced this pull request Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-blocker This needs to be shipped in the next release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mock seems broken on c9s
2 participants