Skip to content

Commit

Permalink
fix formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lleyton authored and kontura committed Aug 26, 2024
1 parent 6d73f8e commit b1f19dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion libdnf5/conf/vars.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,8 @@ void Vars::load(const std::string & installroot, const std::vector<std::string>
}

void Vars::detect_vars(const std::string & installroot) {
set_lazy("arch", []() -> auto { return std::make_unique<std::string>(utils::detect_arch()); }, Priority::AUTO);
set_lazy(
"arch", []() -> auto { return std::make_unique<std::string>(utils::detect_arch()); }, Priority::AUTO);

utils::init_lib_rpm(get_value("arch").c_str());

Expand Down
4 changes: 2 additions & 2 deletions libdnf5/utils/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ std::string detect_arch() {
}

std::string get_os() {
const char* value;
const char * value;
init_lib_rpm(detect_arch().c_str());
rpmGetOsInfo(&value, nullptr);
return value;
}

} // namespace libdnf5::utils
} // namespace libdnf5::utils

0 comments on commit b1f19dd

Please sign in to comment.