-
Notifications
You must be signed in to change notification settings - Fork 91
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
Make protected_packages an append options #1110
Make protected_packages an append options #1110
Conversation
It will allow to use configuration overrides from /usr for protected packages. Resolves: rpm-software-management#1107
67799d9
to
0bd9f12
Compare
doc/dnf5.conf.5.rst
Outdated
@@ -373,7 +373,7 @@ repository configuration file should aside from repo ID consists of baseurl, met | |||
``protected_packages`` | |||
:ref:`list <list-label>` | |||
|
|||
List of packages that DNF5 should never completely remove. | |||
This append list option contains name of packages that DNF5 should never completely remove. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"names"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't comment on the details of the C++ code, but at the high level, this looks like it should do the right thing.
@j-mracek should I merge the CI PR first and re-run this? Or merge this and then the CI PR? |
@Conan-Kudo I have to fix a typo first. Our CI is broken, therefore we have to run all tests locally. Download ci-dnf-stack project build or download packages with patch to |
0bd9f12
to
1775663
Compare
The set of protected packages might differ between systems therefore it would be good to use a relevant set for the current location.
1775663
to
7aef62a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!
0b57dd0
uapi-group/specifications#76 Actually, add a new file under /usr, but keep the old file in /etc because it's still needed for dnf. The new file in the new location is useful because it means that we get the correct behaviour even when /etc is emptied (on systems with new dnf version). dnf5 reads the new location: rpm-software-management/dnf5#1107 rpm-software-management/dnf5#1110
It will allow to use configuration overrides from /usr for protected packages.
Resolves: #1107
CI: rpm-software-management/ci-dnf-stack#1431