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

Hardcode protection of dnf5 package #906

Merged

Conversation

evan-goode
Copy link
Member

@evan-goode evan-goode commented Sep 20, 2023

DNF 5, like DNF 4, should be marked as protected to prevent accidental removal.

Doing it this way, rather than using a file in /etc/dnf/protected.d, means that DNF 4 will still be able to remove DNF 5. I think this is the ideal functionality: DNF 4 will be able to remove DNF 5 and vice-versa, but neither package manager will accidentally remove itself.

Resolves https://bugzilla.redhat.com/show_bug.cgi?id=2221907 "dnf5 is not marked as protected, removal leaves system more or less bricked ".

Doing it this way, rather than using a file in /etc/dnf/protected.d,
means that DNF 4 will still be able to remove DNF 5. I think this is the
ideal functionality: DNF 4 will be able to remove DNF 5 and vice-versa,
but neither package manager will accidentally remove itself.

Resolves https://bugzilla.redhat.com/show_bug.cgi?id=2221907.
@evan-goode
Copy link
Member Author

@evan-goode evan-goode requested a review from inknos September 20, 2023 18:44
@inknos
Copy link
Collaborator

inknos commented Sep 21, 2023

the failing test is due to an unresolved issue with gh secrets. I tried to build it locally and installing it in a f38 container and it was fine, so I would approve this PR to

@Conan-Kudo Conan-Kudo added this pull request to the merge queue Sep 21, 2023
Merged via the queue into rpm-software-management:main with commit 5b1a15c Sep 21, 2023
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.

3 participants