Skip to content

Commit

Permalink
Make protected_packages an append options
Browse files Browse the repository at this point in the history
It will allow to use configuration overrides from /usr for protected
packages.

Resolves: rpm-software-management#1107
  • Loading branch information
j-mracek committed Jan 5, 2024
1 parent 09ecf65 commit 2efa478
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libdnf5/conf/config_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ ConfigMain::Impl::Impl(Config & owner) : owner(owner) {
protected_packages,
[&](Option::Priority priority, const std::string & value) {
if (priority >= protected_packages.get_priority()) {
protected_packages.set(priority, resolve_globs(value));
option_T_list_append(protected_packages, priority, resolve_globs(value));
}
},
nullptr,
Expand Down

0 comments on commit 2efa478

Please sign in to comment.