Skip to content

Commit

Permalink
dnf5: --repofrompath repos are always enabled
Browse files Browse the repository at this point in the history
Even with --disablerepo=*, the --repofrompath repos should stay enabled.

Resolves: #793
  • Loading branch information
m-blaha authored and kontura committed Aug 8, 2023
1 parent ff47bf1 commit 80b06e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dnf5/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,9 @@ int main(int argc, char * argv[]) try {
any_repos_from_system_configuration = repo_sack->size() > 0;

repo_sack->create_repos_from_paths(context.repos_from_path, libdnf5::Option::Priority::COMMANDLINE);
for (const auto & [id, path] : context.repos_from_path) {
context.setopts.emplace_back(id + ".enabled", "1");
}

context.apply_repository_setopts();

Expand Down

0 comments on commit 80b06e2

Please sign in to comment.