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 committed Aug 4, 2023
1 parent 33ca4f8 commit b4259c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dnf5/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -806,10 +806,10 @@ int main(int argc, char * argv[]) try {
repo_sack->create_repos_from_system_configuration();
any_repos_from_system_configuration = repo_sack->size() > 0;

repo_sack->create_repos_from_paths(context.repos_from_path, libdnf5::Option::Priority::COMMANDLINE);

context.apply_repository_setopts();

repo_sack->create_repos_from_paths(context.repos_from_path, libdnf5::Option::Priority::COMMANDLINE);

// Run selected command
command->configure();
{
Expand Down

0 comments on commit b4259c9

Please sign in to comment.