mirror of
https://github.com/CachyOS/New-Cli-Installer.git
synced 2025-02-02 22:07:13 +08:00
🚧 fix cachyos repo addition
remove additional check if one of the repos persist, then return from function and do nothing. logic was wrong anyway. here we was checking the persitance of the repos only to add keyrings.
This commit is contained in:
parent
e74d16a322
commit
4297a1f43f
@ -1668,13 +1668,7 @@ void install_cachyos_repo() noexcept {
|
||||
|
||||
// Check if it's already been applied
|
||||
const auto& repo_list = detail::pacmanconf::get_repo_list("/etc/pacman.conf");
|
||||
if (!ranges::none_of(repo_list, [](auto&& repo_name) {
|
||||
static constexpr std::array cachyos_repos{"[cachyos]", "[cachyos-v3]", "[cachyos-v4]"};
|
||||
return ranges::contains(cachyos_repos, repo_name);
|
||||
})) {
|
||||
spdlog::info("Repo is already added!");
|
||||
return;
|
||||
}
|
||||
spdlog::info("install_cachyos_repo: repo_list := '{}'", repo_list);
|
||||
|
||||
#ifdef NDEVENV
|
||||
utils::exec("pacman-key --recv-keys F3B607488DB35A47 --keyserver keyserver.ubuntu.com", true);
|
||||
|
Loading…
Reference in New Issue
Block a user