Skip to content

Commit

Permalink
dnfdaemon: Call base.setup() after setting releasever
Browse files Browse the repository at this point in the history
  • Loading branch information
m-blaha authored and jan-kolarik committed Nov 12, 2024
1 parent d7d024d commit 3bd3782
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dnf5daemon-server/session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,13 @@ void Session::setup_base() {
base->load_config();

// set variables
base->setup();
if (session_configuration.find("releasever") != session_configuration.end()) {
auto releasever = session_configuration_value<std::string>("releasever");
base->get_vars()->set("releasever", releasever);
}

base->setup();

// load repo configuration
base->get_repo_sack()->create_repos_from_system_configuration();
repositories_status = dnfdaemon::RepoStatus::NOT_READY;
Expand Down

0 comments on commit 3bd3782

Please sign in to comment.